Move mouse. Press 'space' to change direction and colour range. Press 'z' to change algorithm Press 1-6 to choose algorithm
More effects to come! Changes: v04 - Plasma added (press 6) v03 - optimizations and code refactor done v02 - Perlin noise added (press 5) - still optimizations needed. v01 - Alg. number 4 introduced How it works: Generally app displays sinus of iterator (angle) plus function F mapped to colour array. F is based on distance between point and mouse. Iterator (angle) is changed by 13 degrees each frame. Algorithm 1: F is euclidean metric Algorithm 2: F is manhattan(?) norm Algorithm 3: product of above Algorithm 4: F is sum of weighted distances on each axis Algorithm 5: F is product of traversed perlin noise field and euclidean metric Algorithm 6: this is plasma algorithm Points are made of by pen, size of pen is automatically adjusted to desired frame speed. Known bugs: Perlin noise field is not wrapped, so when borders are reached some disruptions appear. Thanks to @scubajerry and @nXIII for helping with sync problem. Pen size adjustment is taken from http://scratch.mit.edu/projects/10090702/