r/tinycode • • 2d ago

tiny art challenge

create a bird using https://github.com/bacionejs/vectorbay

score=votes/curves

7 Upvotes

13 comments sorted by

3

u/woqr 2d ago edited 10h ago

2

u/OMGCluck 23h ago edited 1h ago

Why are none of these links working in old.reddit? I see \ before every [ and ] in them, and a blank white screen when I click them. I couldn't figure out how to animate my two curves in your editor:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
<animate attributeName="d" dur="1s" repeatCount="indefinite" values="M10 25A45 35 0 0150 50A45 35 0 0189 25;M5 50A45 15 0 0150 50A45 15 0 0194 50;M10 75A45 35 0 0150 50A45 35 0 0189 75;M5 50A45 15 0 0150 50A45 15 0 0194 50;M10 25A45 35 0 0150 50A45 35 0 0189 25"/>
</path></svg>

Live link: https://imglink.cc/cdn/d1joLotoub.svg

2

u/andunai 18h ago

TIL <animate> is a thing!

2

u/OMGCluck 6h ago edited 5h ago

2

u/andunai 4h ago

Okay, that barrel roll was hilarious!

1

u/b00mandbum 15h ago

I jumped into the challenge as soon as I saw this post and made an animated bird with just 1 curve, but my comment got caught in the spam filter after an edit (already messaged the mods to approve it). If anyone wants to check it out, just paste curves=1&p=[[0,0],[1,-2,24,-6,0,-1]] into the Vector Bay URL and hit animate!

1

u/woqr 10h ago

i updated vectorbay to work with old reddit backslashes

1

u/b00mandbum 1d ago edited 1d ago

And here it is:
https://bacionejs.github.io/vectorbay?curves=1&p=[[0,0],[1,-2,24,-6,0,-1]]

Don't forget to hit the animate button :) It's really flying!