Mandelbrot set: Difference between revisions
Content deleted Content added
Line 2,593: | Line 2,593: | ||
=={{header|Easyprog.online}}== |
=={{header|Easyprog.online}}== |
||
[https://easyprog.online/ide/run.html?code=floatvars%0Awhile%20y%20%3C%20300%0Ax%20%3D%200%0Awhile%20x%20%3C%20300%0Azx%20%3D%200%0Azy%20%3D%200%0Acx%20%3D%20%28x%20-% |
[https://easyprog.online/ide/run.html?code=floatvars%0Awhile%20y%20%3C%20300%0Ax%20%3D%200%0Awhile%20x%20%3C%20300%0Azx%20%3D%200%0Azy%20%3D%200%0Acx%20%3D%20%28x%20-%20220%29%20/%20120%0Acy%20%3D%20%28y%20-%20150%29%20/%20120%0Aiter%20%3D%20100%0Awhile%20zx%20%2A%20zx%20%2B%20zy%20%2A%20zy%20%3C%204%20and%20iter%20%3E%200%0Ah%20%3D%20zx%20%2A%20zx%20-%20zy%20%2A%20zy%20%2B%20cx%0Azy%20%3D%202%20%2A%20zx%20%2A%20zy%20%2B%20cy%0Azx%20%3D%20h%0Aiter%20-%3D%201%0A.%0Amove%20x%20/%203%20y%20/%203%0Acolor_red%20iter%20/%20100%0Arect%200.4%200.4%0Ax%20%2B%3D%201%0A.%0Ay%20%2B%3D%201%0A. Try it] |
||
<lang>floatvars |
<lang>floatvars |
||
Line 2,601: | Line 2,601: | ||
zx = 0 |
zx = 0 |
||
zy = 0 |
zy = 0 |
||
cx = (x - |
cx = (x - 220) / 120 |
||
cy = (y - 150) / 120 |
cy = (y - 150) / 120 |
||
iter = 100 |
iter = 100 |