Mandelbrot set: Difference between revisions
m
Finally, basic iteration count and edge detection were added
m (Added location analysis by Claude Heiland-Allen) |
m (Finally, basic iteration count and edge detection were added) |
||
Line 8,005:
heatmap(S .^ 0.1, c=:balance)
savefig("Mandelbrot_set_1.png")
heatmap(T .^ 0.1, c=:balance)
savefig("Mandelbrot_set_2.png")
N = abs.(Z) .>= r # normalized iteration count
Line 8,010 ⟶ 8,013:
heatmap(T .^ 0.1, c=:balance)
savefig("
N = abs.(Z) .> 2 # exterior distance estimation
D[N] =
heatmap(D .^ 0.1, c=:balance)
savefig("
heatmap((0 .< D) .& (D .< 0.005), c=:binary)
savefig("Mandelbrot_set_5.png")</syntaxhighlight>
'''Normal Map Effect and Stripe Average Coloring'''
Line 10,973 ⟶ 10,979:
plt.imshow(S ** 0.1, cmap=plt.cm.twilight_shifted, origin="lower")
plt.savefig("Mandelbrot_set_1.png", dpi=200)
plt.imshow(T ** 0.1, cmap=plt.cm.twilight_shifted, origin="lower")
plt.savefig("Mandelbrot_set_2.png", dpi=200)
N = abs(Z) >= r # normalized iteration count
Line 10,978 ⟶ 10,987:
plt.imshow(T ** 0.1, cmap=plt.cm.twilight_shifted, origin="lower")
plt.savefig("
N = abs(Z) > 2 # exterior distance estimation
Line 10,984 ⟶ 10,993:
plt.imshow(D ** 0.1, cmap=plt.cm.twilight_shifted, origin="lower")
plt.savefig("
plt.imshow((0 < D) & (D < 0.005), cmap=plt.cm.binary, origin="lower")
plt.savefig("Mandelbrot_set_5.png", dpi=200)</syntaxhighlight>
'''Normal Map Effect and Stripe Average Coloring'''
|