Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.09 KB

File metadata and controls

20 lines (15 loc) · 1.09 KB

Cyclic Symmetric Multi-Scale Turing Patterns in WebGL

This is an implementation of Jonathan McCabe's Cyclic Symmetric Multi-Scale Turing Patterns written in WebGL. Softology's blog post detailing McCabe's algorithm was very helpful when writing this up.

Demo here: http://afavaro.github.com/TuringPatterns/turing.html

I've added some switches for the scales and different color modes for fun.

This demo uses a two pass box blur to calculate the activator and inhibitor densities at the scales suggested by Softology over a 1024x512 grid. Each frame is the result of the following render passes:

  • Two passes per scale to calculate the activator and inhibitor densities.
  • One pass to apply the circular symmetries and update the grid with the appropriate value.
  • One pass to color the grid and render it to the screen.