So in June I'm trying my first thing-a-day-for-a-month project.

I'll be posting experiments made with , a tool that i've been making with friends for the last 13 years, to draw with vector graphics in a simple drawing syntax.

First off, an output of some recent fun animating stroke dashes -- increasing their offset results in a pleasing smooth motion. This one is made out of 3 100-sided stars with varying dashed strokes.

@rlafuente this reminds me of a thing i made once
https://picardia.co/static/vanitas
Trochoids, Epitrochoids, Cycloids and Epicycloids are cool :)

@aqua wow this is elegant code and a beautiful result. Thank you for taking the time to share this :)

@rlafuente I'm glad you think the code is elegant (unless it was sarcasm, lmao). I have a horrible habit of not commenting and especially in this case I used a lot of 1 letter variable names. I remember the proof / theory behind whats being displayed, but how the code actually does it? I couldn't remember for the life of me.
Follow

@aqua oh i'm serious! It looks easy enough to adapt even if i don't get some of the vars. I'll ping you if I arrive at anything relevant :)

· · Web · 1 · 0 · 1

@rlafuente Also, I feel like I should mention: I made this before I learned about requestAnimationFrame. Using that with a time-based calculation would make it run smoother on devices with weaker CPU’s. Luckily it isn’t very CPU intensive anyway.

Sign in to participate in the conversation
post.lurk.org

Welcome to post.lurk.org, an instance for discussions around cultural freedom, experimental, new media art, net and computational culture, and things like that.