diff options
Diffstat (limited to 'tests/typ/visualize/gradient-transform.typ')
| -rw-r--r-- | tests/typ/visualize/gradient-transform.typ | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/typ/visualize/gradient-transform.typ b/tests/typ/visualize/gradient-transform.typ new file mode 100644 index 00000000..d33c4ac2 --- /dev/null +++ b/tests/typ/visualize/gradient-transform.typ @@ -0,0 +1,12 @@ +// Test whether gradients work well when they are contained within a transform. + +--- +#let grad = gradient.linear(red, blue, green, purple, relative: "parent"); +#let my-rect = rect(width: 50pt, height: 50pt, fill: grad) +#set page( + height: 200pt, + width: 200pt, +) +#place(top + right, scale(x: 200%, y: 130%, my-rect)) +#place(bottom + center, rotate(45deg, my-rect)) +#place(horizon + center, scale(x: 200%, y: 130%, rotate(45deg, my-rect))) |
