From aadd3f1c3b2f299d9e68335f34a98dad2c730ea6 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 8 Feb 2021 04:49:41 -0800 Subject: modules/swarm: implement a particles swarm module Just a fun little swarm based loosely on 80s-era boids It would be interesting to make stuff like the # of particles and the weights runtime configurable, or exposed as knobs. Using a Z-buffer for occlusions and perhaps shading by depth might make a significant improvement on the visual quality. It might also be interesting to draw the particles as lines connecting their current position with their previous, instead as pixels. Or fat pixels like stars... --- src/rototiller.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rototiller.c') diff --git a/src/rototiller.c b/src/rototiller.c index 7e96545..6857e72 100644 --- a/src/rototiller.c +++ b/src/rototiller.c @@ -51,6 +51,7 @@ extern rototiller_module_t spiro_module; extern rototiller_module_t stars_module; extern rototiller_module_t submit_module; extern rototiller_module_t swab_module; +extern rototiller_module_t swarm_module; static const rototiller_module_t *modules[] = { &compose_module, @@ -71,6 +72,7 @@ static const rototiller_module_t *modules[] = { &stars_module, &submit_module, &swab_module, + &swarm_module, }; typedef struct rototiller_t { -- cgit v1.2.1