summaryrefslogtreecommitdiff
path: root/test/svg/paths.svg
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 11:27:39 -0300
committerGabriel Schneider <[email protected]>2026-11-12 13:22:02 -0300
commit71e534631bf68f33f802d64794340870374b9f69 (patch)
tree2a45229ce238a4e2ce355683f0e75a7725d4851a /test/svg/paths.svg
parent00605f7a109845a99f16621b267305a8b995dddc (diff)
downloadsketchbook-71e534631bf68f33f802d64794340870374b9f69.tar.gz
sketchbook-71e534631bf68f33f802d64794340870374b9f69.zip
sketchbook: anim, manim-style scenes as a module (from the game's vecanim), with objects a scene draws itself
The player takes its canvas from the room it has and fits the scene's frame into it, plays through and quits when exported, and draws vector objects in runs around custom ones. The renderers' resvg comparison and the timings come along as `zig build diff` and `zig build bench`; the comparison's reference is padded to whole blocks rather than squeezed, which had put Typst text over the limit. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Diffstat (limited to 'test/svg/paths.svg')
-rw-r--r--test/svg/paths.svg8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/svg/paths.svg b/test/svg/paths.svg
new file mode 100644
index 0000000..173ec9e
--- /dev/null
+++ b/test/svg/paths.svg
@@ -0,0 +1,8 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 120" width="200" height="120">
+ <!-- Every path command, absolute and relative, with implicit repeats. -->
+ <path d="M10 10 L60 10 l20 20 H120 v30 h-40 Z" fill="#58c4dd"/>
+ <path d="M140 10 C160 0 190 30 180 50 S150 80 140 60 Q130 40 150 30 T170 20" fill="none" stroke="#fc6255" stroke-width="3"/>
+ <path d="M20 80 a30 20 0 1 0 60 0 a30 20 0 1 0 -60 0z" fill="#83c167"/>
+ <path d="M100 110A40 40 0 0 1 180 110" fill="none" stroke="#f7d96f" stroke-width="4"/>
+ <path d="M100,70 l10-10 10,10-10,10z" fill="#9a72ac"/>
+</svg>