diff options
| author | Sébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com> | 2023-10-04 10:58:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-04 10:58:17 +0200 |
| commit | 57bc614cf472c080800afff6df74b354375be4b4 (patch) | |
| tree | 9d5985d839a82edbc9ed1e78ec44bc0209329a8a /tests | |
| parent | 55095246bfed785eaffd7a610f59cdcc4ce01896 (diff) | |
Gradient Part 2a - Fix sharp gradients in SVG (#2307)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/visualize/gradient-sharp.png | bin | 16748 -> 45753 bytes | |||
| -rw-r--r-- | tests/typ/visualize/gradient-sharp.typ | 11 |
2 files changed, 10 insertions, 1 deletions
diff --git a/tests/ref/visualize/gradient-sharp.png b/tests/ref/visualize/gradient-sharp.png Binary files differindex 8e50f597..30e6fb66 100644 --- a/tests/ref/visualize/gradient-sharp.png +++ b/tests/ref/visualize/gradient-sharp.png 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%), +) |
