So in June I'm trying my first thing-a-day-for-a-month project.
I'll be posting experiments made with #shoebot, 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 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!
@rlafuente pip package & daily changelog
@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
@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: https://post.lurk.org/tags/LURKbirthday
@rra What a great tip, thank you!! Now to come up with a decent unique hashtag.
@aqua wow this is elegant code and a beautiful result. Thank you for taking the time to share this :)
@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.
@rlafuente Wonderful, can’t wait to see what’s next!
Note to properly size the next one: video previews on Mastodon have a width of 548px