Mandelbrot set: Difference between revisions

Content deleted Content added
Chkas (talk | contribs)
Chkas (talk | contribs)
Line 2,593:
=={{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-%2022020240%29%20/%20120%0Acy%20%3D%20%28y%20-%20150%29%20/%20120%0Aiter%20%3D%201002030%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/%201002010%0Arect%200.4%200.4%0Ax%20%2B%3D%201%0A.%0Ay%20%2B%3D%201%0A. Try it]
 
<lang>floatvars
Line 2,603:
cx = (x - 220) / 120
cy = (y - 150) / 120
iter = 10030
while zx * zx + zy * zy < 4 and iter > 0
h = zx * zx - zy * zy + cx
Line 2,611:
.
move x / 3 y / 3
color_red iter / 10010
rect 0.4 0.4
x += 1