summaryrefslogtreecommitdiff
path: root/tests/typ/visualize/gradient-transform.typ
blob: d33c4ac2d3cbee5daaa4172cfb549cf49e87c495 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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)))