馃悕馃悕馃悕
at dev 23 lines 1.2 kB view raw
1 2h2 { Projective Shift Map } 3 4div { $math/math { 5 ident z r cos theta:~ phi:~ psi:~ c n i e 6 text where:~ 7 op ( ) + - = 8 in 9 10 z_{n+1} = (r + cos(theta-phi))e^{i theta psi} - c 11 where z_n = r cos theta 12} } 13 14b{click and drag} to move around, b{scroll} to zoom in and out; b{press F} to go fullscreen 15 16div[style=height: 75%]{ $gpu/proj_shift {} } 17 18this visualization is treating each pixel coordinate as a starting value z_0 in the complex plane, and running it through the iterative equation above many times, keeping track of where it ends up. points that exceed the "escape distance" from the origin are grayscale, darker the longer they took to reach that escape threshold. the rest of the points are colored according to their final location (as you increase the iterations count, you can watch them jump around). green is based on distance from the origin, while blue and red are based on the angle around the origin. you can set iterations to zero to see what the color mapping looks like prior to any of the points moving. 19 20i{p.s. you can use the input boxes to exceed the bounds of the sliders} 21 22i{p.p.s. you can save the canvas as an image in the right click menu} 23