Mandelbrot set: Difference between revisions
Content deleted Content added
→Mandelbrot Set with Julia Animation: Animation revised (no more white borders) |
→Mandelbrot Set with Julia Animation: Fixed: order of calculation |
||
Line 5,270: | Line 5,270: | ||
for k = 1:n |
for k = 1:n |
||
M = abs.(Z) .< r |
M = abs.(Z) .< r |
||
S[M] = S[M] + exp.(-abs.(Z[M])) |
|||
Z[M] = Z[M] .^ 2 + C[M] |
Z[M] = Z[M] .^ 2 + C[M] |
||
heatmap(exp.(-abs.(Z)), c=:jet) |
heatmap(exp.(-abs.(Z)), c=:jet) |
||
frame(animation) |
frame(animation) |
||
S |
heatmap(S + exp.(-abs.(Z)), c=:jet) |
||
heatmap(S, c=:jet) |
|||
frame(smoothing) |
frame(smoothing) |
||
end |
end |