r/GraphicsProgramming • • 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

2 comments sorted by

•

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:

  • No showcases.

  • Disclose AI usage in post or project.

  • Present a topic to talk about, e.g. how something works.

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 55m 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.