I finally understood why the patterns stabilized quickly and why the generated pictures didn't look like J. McCabe's... Turns out that I made a mistake in writing the algorithm. The program used to to this:
- Generate activator and inhibitor arrays.
- Compute variation arrays for each scale.
- Find the smallest variation over all scales and store the corresponding scale.
- Update all pixels based on this one scale.
At one given time step, all pixels of the image were updated on one scale only. And that's not the intended behavior. Instead, the algorithm should work like that:
- Generate activator and inhibitor arrays.
- Compute variation arrays for each scale.
- For each pixel individually, find which scale has the smallest variation.
- Update each pixel based on the local best scale.
This way, we really get multi-scale patterns. The pictures are awesome now, and keep evolving all the time. I also implemented a simple point symmetry around the origin. I'll improve that later. And finally, I started playing around with color maps to get something more fun than the black and white pictures. A three-color gradient looks pretty nice (black to dark red to white, for example).
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.