mirror of
https://github.com/typst/typst
synced 2025-05-15 17:45:27 +08:00
14 lines
252 B
XML
14 lines
252 B
XML
// Test sharp gradients.
|
|
|
|
---
|
|
#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%),
|
|
)
|