Re:Show HN: My weekend project, a graphics/cellular automata...
by Maciek416 on Sunday February 27, 2011 @08:16PM
(#2269598)
Perhaps a given automaton could be told to open a bucket of paint and then have that paint expend itself over time (drop in color intensity, increase in opacity, or whatever).
Re:Show HN: My weekend project, a graphics/cellular automata...
by daeken on Sunday February 27, 2011 @08:26PM
(#2269618)
Oh nice, I quite like that. I'll try it out. Thanks!
Btw, just implemented yet another new feature: the '@' command is an ant bomb. If there are multiple ants in play, @ kills the one that triggers it. That lets you fork without completely annihilating your system.
Re:Show HN: My weekend project, a graphics/cellular automata...
by die_sekte on Sunday February 27, 2011 @08:33PM
(#2269643)
A color increase/decrease command, which cycles through a palette?
Re:Show HN: My weekend project, a graphics/cellular automata...
by daeken on Sunday February 27, 2011 @08:54PM
(#2269694)
Alright, both of these are in. $ increments the color, ^ decrements it. In addition, = now causes the child ant to have its color incremented, and < causes the child color to be decremented. Technicolor craziness.
Edit: Really don't like the color stuff. I've left in $ and ^, but I've turned it off for forks. It just looks like random nonsense, sadly.
Edit: Just made a small change that will make things look prettier, though. If you have the command string XYZW, the command string XYZWXYZW is 100% equivalent, except for the shading (due to the cell values looping around). So when you put in a command string, it's automagickly extended to > 64 bytes now, guaranteeing smooth shading.