Mandelbrot set: Difference between revisions
→Mandelbrot Set with Julia Animation: Animation revised (no more white borders)
m (→Normalized Iteration Count, Distance Estimation and Mercator Maps: Correction: NumPy is just as fast as Julia) |
(→Mandelbrot Set with Julia Animation: Animation revised (no more white borders)) |
||
Line 5,256:
gr(aspect_ratio=:equal, legend=false, dpi=250)
d, h = 800, 600 # pixel density (= image width) and image height
n, r = 40, 1000 # number of iterations and escape radius (r > 2)
x = range(-1.0, 1.0, length=d+1)
Line 5,265:
Z, S = zero(C), zeros(size(C))
for k = 1:
Z[M] = Z[M] .^ 2 + C[M]
heatmap(exp.(-abs.(Z)), c=:jet)
frame(
heatmap(S, c=:jet)
frame(
end
gif(
gif(
===Normalized Iteration Count, Distance Estimation and Mercator Maps===
|