snekmuffin@lemmy.dbzer0.comOPtoUnixporn@lemmy.ml•Who needs Wallpaper engine when you have Raylib
1·
3 months agothank you! seems someone else already tagged you, but here’s the link to source just in case: https://codeberg.org/aketawi-study/rust-constellation-bgr/
The basic idea is that I spawn a bunch of nodes with rando m velocitins and check the distance between each other at every frame. If the distance is within a certain radius, draw a line.
To display it in the background I just have a script that launches it on startup, and a couple of rules in AwesomeWM and picom to make it transparent, unfocusable and borderless
even all of that hype about memory safety and borrow checker you keep hearing aside, the actual coolest thing about Rust is how it does Traits instead of classes and that you can bind arbitrary data to enums