Currently programming my "cellular automata with n-body gravity" in rust.
The white gradient is formed by the "gravitons", the tan stuff is sand. Right now I've got the gravitons reproducing and passing directional data between each other, what I'm trying to wrap my head around is rotating indices for each simulated cell so that i can make them dynamically "fall" towards the nearest gravity source, rather than always falling towards the bottom of the screen as they do now.