@blinry@chaos.social
#Genuary Day 27: "Lifeform"
Wrote a little swarm algorithm! It works like this:
1. Walk in a random direction.
2. Follow another bug if it's:
- in front of you
- not too far away
- moving away from you
3. Avoid the walls.
🐜
🐜
🐜
🐜
🐜
🐜
🐜
🐜![]()
#genuary2026 #genuary27 #p5js
@blinry@chaos.social
#Genuary Day 28: "No libraries, no canvas, only HTML elements."
Used a technique I learned from @rebane2001@infosec.exchange in her awesome #39c3 talk "CSS Clicker Training", and made a light switch!
No Javascript, not even a <style> tag! The trick is a <details> tag + lots of inline styles.
#genuary2026 #genuary28 #css