Julia set: Difference between revisions
Content added Content deleted
(→{{header|Liberty BASIC}}: Added.) |
|||
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"> |
<syntaxhighlight lang="text"> |
||
cx = -0.7 |
|||
cy = 0.27015 |
cy = 0.27015 |
||
for y |
for y = 0 to 299 |
||
for x |
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 |
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> |
|||
=={{header|Elixir}}== |
=={{header|Elixir}}== |