Mandelbrot set: Difference between revisions
→Normal Maps, Mercator Maps and Deep Zoom Images: Added stripes
Basicgames (talk | contribs) |
(→Normal Maps, Mercator Maps and Deep Zoom Images: Added stripes) |
||
Line 8,905:
n, r = 200, 500 # number of iterations and escape radius (r > 2)
height,
v = np.exp(
x = np.linspace(0, 2, num=d+1)
Line 8,931:
U = Z[N] / dZ[N]
U = U / abs(U) # unit normal vector to the equipotential lines
T[N] = np.maximum((U.real * v.real + U.imag * v.imag + height + S) / (1 + height), 0)
plt.imshow(T ** 1.0, cmap=plt.cm.bone, origin="lower")
|