Source code

Revision control

Copy as Markdown

Other Tools

# A solid border whose sides are longer than MAX_BORDER_RESOLUTION (2048px).
# Solid sides are drawn directly and need no render task, so their length must
# not drag down the rasterization scale of the cached corners.
---
root:
items:
- type: rect
bounds: [0, 0, 16496, 16496]
color: [255, 255, 255, 1.0]
- type: border
bounds: [10, 10, 16496, 16496]
width: 6
border-type: normal
style: solid
radius: 30
color: [ [200, 30, 30, 1.0], [200, 30, 30, 1.0], [200, 30, 30, 1.0], [200, 30, 30, 1.0] ]
# Hide the parts of the test with solid white rects so that it renders the same
# regardless of the window size.
- type: rect
bounds: [400, 0, 20000, 20000]
color: [255, 255, 255, 1.0]
- type: rect
bounds: [0, 400, 20000, 20000]
color: [255, 255, 255, 1.0]