Julia set: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 775: Line 775:
</pre>
</pre>

=={{header|EasyLang}}==

[https://easylang.online/apps/julia-set.html Run it]

<lang>cx = -0.7
cy = 0.27015
for y% range 300
for x% range 300
iter% = 0
zx = (x% - 150) / 100
zy = (y% - 150) / 150
while zx * zx + zy * zy < 4 and iter% < 128
h = zx * zx - zy * zy + cx
zy = 2 * zx * zy + cy
zx = h
iter% += 1
.
if iter% = 128
color_red 0
else
color_red iter% / 16
.
move x% / 3 y% / 3
rect 0.4 0.4
.
.</lang>
=={{header|Delphi}}==
=={{header|Delphi}}==
{{libheader| Winapi.Windows}}
{{libheader| Winapi.Windows}}
Line 863: Line 836:
end.
end.
</lang>
</lang>
=={{header|EasyLang}}==

[https://easylang.online/apps/julia-set.html Run it]

<lang>cx = -0.7
cy = 0.27015
for y% range 300
for x% range 300
iter% = 0
zx = (x% - 150) / 100
zy = (y% - 150) / 150
while zx * zx + zy * zy < 4 and iter% < 128
h = zx * zx - zy * zy + cx
zy = 2 * zx * zy + cy
zx = h
iter% += 1
.
if iter% = 128
color_red 0
else
color_red iter% / 16
.
move x% / 3 y% / 3
rect 0.4 0.4
.
.</lang>

=={{header|Elixir}}==
=={{header|Elixir}}==
{{trans|AWK}}
{{trans|AWK}}