r/GraphicsProgramming • u/OMGCluck • 1h ago
Bird does barrel rolls into random landscapes from different directions each reload, <4Kb SVG (<2Kb SVGZ)
https://svgklondike.pages.dev/flyingintolandscapes.svgz
2
Upvotes
•
u/AutoModerator 1h ago
Recently updated rules. Please check that your post is in compliance with Rules 1, 4, 5, and 6 on the sidebar. TL;DR:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/OMGCluck 1h ago
SMIL animation in SVG doesn't get enough love, so I combined
<animate>for flapping wings,<animateMotion>for the flightpath, and<animateTransform>for both vanishing into the distance and doing barrel rolls.Javascript used for randomisation. The source is still readable, so not entirely minified. AMA about it, hurdles I overcame, how the code evolved, etc.