summaryrefslogtreecommitdiff
path: root/tests/typ/visualize/gradient-dir.typ
blob: 92e0039341958dcb88418d629ae0487e56a65df9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Test gradients with direction.

---
#set page(width: 900pt)
#for i in range(0, 360, step: 15){
  box(
    height: 100pt,
    width: 100pt,
    fill: gradient.linear(angle: i * 1deg, (red, 0%), (blue, 100%)),
    align(center + horizon)[Angle: #i degrees],
  )
  h(30pt)
}