Sunflower fractal: Difference between revisions
Content added Content deleted
m (→{{header|Julia}}: reposition png) |
(→{{header|Julia}}: move png) |
||
Line 468: | Line 468: | ||
x = r .* cos.(θ) |
x = r .* cos.(θ) |
||
y = r .* sin.(θ) |
y = r .* sin.(θ) |
||
f = Figure( |
f = Figure() |
||
ax = Axis(f[1, 1], backgroundcolor = :green) |
ax = Axis(f[1, 1], backgroundcolor = :green) |
||
scatter!(ax, x, y, color = :gold, markersize = markersizes, strokewidth = 1) |
scatter!(ax, x, y, color = :gold, markersize = markersizes, strokewidth = 1) |
||
hidespines!(ax) |
|||
hidedecorations!(ax) |
|||
return f |
return f |
||
end |
end |
||
sunflowerplot() |
sunflowerplot() |
||
</syntaxhighlight> |
</syntaxhighlight>{{out}} |
||
[[File:Sunflower.png|left|thumb]] |
[[File:Sunflower-julia.png|left|thumb]] |
||
<br /> |
|||
=={{header|Liberty BASIC}}== |
=={{header|Liberty BASIC}}== |