Julia set: Difference between revisions

Content added Content deleted
Line 1,372: Line 1,372:
[https://easylang.online/apps/julia-set.html Run it]
[https://easylang.online/apps/julia-set.html Run it]


<syntaxhighlight lang="text">cx = -0.7
<syntaxhighlight lang="text">
cx = -0.7
cy = 0.27015
cy = 0.27015
for y range 300
for y = 0 to 299
for x range 300
for x = 0 to 299
zx = (x - 150) / 100
zx = (x - 150) / 100
zy = (y - 150) / 150
zy = (y - 150) / 150
color3 0 0 0
color3 0 0 0
for iter range 128
for iter = 0 to 127
if zx * zx + zy * zy > 4
if zx * zx + zy * zy > 4
color3 iter / 16 0 0
color3 iter / 16 0 0
Line 1,391: Line 1,392:
rect 0.4 0.4
rect 0.4 0.4
.
.
.
.</syntaxhighlight>
</syntaxhighlight>


=={{header|Elixir}}==
=={{header|Elixir}}==