Jump to content

Mandelbrot set: Difference between revisions

m
Last improvement: Switched to a quadratic smoothing for the border detection (clearly visible at the antenna)
(Added MSX Basic and True BASIC)
m (Last improvement: Switched to a quadratic smoothing for the border detection (clearly visible at the antenna))
Line 8,074:
savefig("Mandelbrot_set_3.png")
 
N, thickness = D .> 0, 0.00501 # boundary detection and interpolation
D[N] = max.(1 .- D[N] ./ thickness, 0)
 
heatmap(D .^ 12.0, c=:binary)
savefig("Mandelbrot_set_4.png")</syntaxhighlight>
 
Line 11,048:
plt.savefig("Mandelbrot_set_3.png", dpi=200)
 
N, thickness = D > 0, 0.00501 # boundary detection and interpolation
D[N] = np.maximum(1 - D[N] / thickness, 0)
 
plt.imshow(D ** 12.0, cmap=plt.cm.binary, origin="lower")
plt.savefig("Mandelbrot_set_4.png", dpi=200)</syntaxhighlight>
 
305

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.