Last active
June 3, 2021 22:25
-
-
Save pythoneer/141d93b1a3d31bb6bb8e707a39902579 to your computer and use it in GitHub Desktop.
60fps_arc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TestCase := Window { | |
preferred-width: 400px; | |
preferred-height: 600px; | |
background: red; | |
Path { | |
width: 100%; | |
height: 100%; | |
fill: white; | |
viewbox-width: 100; | |
viewbox-height: 100; | |
MoveTo { | |
x: 50; | |
y: 0; | |
} | |
LineTo { | |
x: 50; | |
y: 8; | |
} | |
ArcTo { | |
radius-x: 42; | |
radius-y: 42; | |
x: 8; | |
y: 50; | |
sweep: false; | |
large-arc: false; | |
} | |
LineTo { | |
y: 50; | |
x: 0; | |
} | |
ArcTo { | |
radius-x: 50; | |
radius-y: 50; | |
x: 50; | |
y: 0; | |
sweep: true; | |
large-arc: false; | |
} | |
LineTo { | |
x: 50; | |
y: 0; | |
} | |
} | |
Path { | |
width: 100%; | |
height: 100%; | |
fill: green; | |
viewbox-width: 100; | |
viewbox-height: 100; | |
MoveTo { | |
x: 50; | |
y: - 2; | |
} | |
ArcTo { | |
radius-x: 2; | |
radius-y: 2; | |
x: 50; | |
y: 10; | |
} | |
ArcTo { | |
radius-x: 2; | |
radius-y: 2; | |
x: 50; | |
y: - 2; | |
} | |
} | |
Path { | |
width: 100%; | |
height: 100%; | |
fill: green; | |
viewbox-width: 100; | |
viewbox-height: 100; | |
MoveTo { | |
x: 8; | |
y: 50; | |
} | |
ArcTo { | |
radius-x: 2; | |
radius-y: 2; | |
x: 50; | |
y: 10; | |
} | |
ArcTo { | |
radius-x: 2; | |
radius-y: 2; | |
x: 8; | |
y: 50; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment