1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# don't assume w=1 when checking if the transform is just a translation
---
root:
items:
- type: stacking-context
bounds: [50, 50, 600, 600]
perspective: 20
items:
- type: stacking-context
transform: [1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,2]
items:
- type: rect
bounds: [50, 50, 100, 100]
color: red
|