Follow

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.

· · Web · 3 · 6 · 17

Note to properly size the next one: video previews on Mastodon have a width of 548px

@rlafuente Looking forward! Do you consider sharing the code of the sketches as well?

@rra Definitely! But I've been struggling with an appropriate way to publish the code

- maybe a toot reply, but it's unformatted
- gists or similar are a pretty insular medium, things are scattered and i'd like a way to keep them together
- a dedicated page would be nice but takes some work

Would be happy to hear how you'd do it!

@rra i'm afraid you've successfully confused me :) is daily changelog a python package?

(in any case i'm leaning towards the simplest way -- tooting the source code as a reply)

@rlafuente distribute the sketches via pip and the package is updated daily as you add sketches. You toot the daily changelog here :unacceptable:

@rra my insurance company will contact you shortly regarding the damages to my home, because of the many brain bits now scattered all over the place

@rlafuente oh and if you want a nice collection afterwards, consider using a relatively unique hashtag as mastodon creates pages like these: post.lurk.org/tags/LURKbirthda

@rra What a great tip, thank you!! Now to come up with a decent unique hashtag.

@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.

@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 :)

@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.