Who needs Wallpaper engine when you have Raylib

Made the kinda constellation animation you see sometimes in the backgrounds of things.

Video link

(surprisingly easy on resources given the O(n^2^) complexity

141 points · 10 comments · view on lemmy.world

10 Comments

snap@lemm.ee · 11 pts · 1y (5 replies)

very nice. I would very much love to know how you did that :)

snekmuffin@lemmy.dbzer0.com · 6 pts · 1y (1 reply)

thank 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

snap@lemm.ee · 3 pts · 1y

Looking awesome. Thank you for your time and the explanation

Sekoia@lemmy.blahaj.zone · 4 pts · 1y (2 replies)

I would love to know as well!

snekmuffin@lemmy.dbzer0.com · 2 pts · 1y (1 reply)

sending a notification to you just in case, explanation in the neighbor comment :v

Sekoia@lemmy.blahaj.zone · 2 pts · 1y

Thank you!

wesker@lemmy.sdf.org · 8 pts · 1y

Very pleasant.

velox_vulnus@lemmy.ml · 7 pts · 1y
[ removed ]
smpl@discuss.tchncs.de · 5 pts · 1y
[ removed ]
stel@fedia.io · 2 pts · 1y (2 replies)

what's the little rain simulation you've got in your terminal? :D

snekmuffin@lemmy.dbzer0.com · 2 pts · 1y (1 reply)
stel@fedia.io · 2 pts · 1y

thank you!! ^_^