summaryrefslogtreecommitdiff
path: root/tests/typ/visualize/gradient-sharp.typ
diff options
context:
space:
mode:
authorSébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com>2023-10-04 10:58:17 +0200
committerGitHub <noreply@github.com>2023-10-04 10:58:17 +0200
commit57bc614cf472c080800afff6df74b354375be4b4 (patch)
tree9d5985d839a82edbc9ed1e78ec44bc0209329a8a /tests/typ/visualize/gradient-sharp.typ
parent55095246bfed785eaffd7a610f59cdcc4ce01896 (diff)
Gradient Part 2a - Fix sharp gradients in SVG (#2307)
Diffstat (limited to 'tests/typ/visualize/gradient-sharp.typ')
-rw-r--r--tests/typ/visualize/gradient-sharp.typ11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/typ/visualize/gradient-sharp.typ b/tests/typ/visualize/gradient-sharp.typ
index e19df58f..424beb8b 100644
--- a/tests/typ/visualize/gradient-sharp.typ
+++ b/tests/typ/visualize/gradient-sharp.typ
@@ -1,4 +1,13 @@
// Test sharp gradients.
---
-#square(size: 100pt, fill: gradient.linear(..color.map.rainbow).sharp(10))
+#square(
+ size: 100pt,
+ fill: gradient.linear(..color.map.rainbow, space: color.hsl).sharp(10),
+)
+
+---
+#square(
+ size: 100pt,
+ fill: gradient.linear(..color.map.rainbow, space: color.hsl).sharp(10, smoothness: 40%),
+)