Mandelbrot set: Difference between revisions

Content added Content deleted
Line 6,603: Line 6,603:
T[N] = max.((real.(U) .* real(v) .+ imag.(U) .* imag(v) .+ height) ./ (1 + height), 0)
T[N] = max.((real.(U) .* real(v) .+ imag.(U) .* imag(v) .+ height) ./ (1 + height), 0)


heatmap(T .^ 1.0, c=:grays)
heatmap(T .^ 1.0, c=:bone_1)
savefig("Mandelbrot_normal_map_1.png")
savefig("Mandelbrot_normal_map_1.png")


Line 6,612: Line 6,612:
T[N] = max.((real.(U) .* real(v) .+ imag.(U) .* imag(v) .+ height) ./ (1 + height), 0)
T[N] = max.((real.(U) .* real(v) .+ imag.(U) .* imag(v) .+ height) ./ (1 + height), 0)


heatmap(T .^ 1.0, c=:grays)
heatmap(T .^ 1.0, c=:afmhot)
savefig("Mandelbrot_normal_map_2.png")</syntaxhighlight>
savefig("Mandelbrot_normal_map_2.png")</syntaxhighlight>