Mandelbrot set: Difference between revisions
→Normal Maps, Mercator Maps and Perturbation Theory: Added stripes
(→Normal Maps, Mercator Maps and Deep Zoom Images: Added stripes) |
(→Normal Maps, Mercator Maps and Perturbation Theory: Added stripes) |
||
Line 6,572:
n, r = 200, 500 # number of iterations and escape radius (r > 2)
height,
v = exp(
x = range(0, 2, length=d+1)
Line 6,599:
U = Z[N] ./ dZ[N]
U = U ./ abs.(U) # unit normal vector to the equipotential lines
T[N] = max.((real.(U) .* real(v) .+ imag.(U) .* imag(v) .+ height .+ S) ./ (1 + height), 0)
heatmap(T .^ 1.0, c=:bone_1)
|