On the document of MandelbrotSetPlot
, it said:
With ColorFunction->f, where f is a function, the argument of f is a real number in proportional to the number of iterates, and f must return color directives, such as RGBColor and Hue, or named colors, such as Red and Blue.
It seems to have only one argument. But an example uses the third argument:
So I tried evaluating
Reap[MandelbrotSetPlot[{-2 - 2 I, 2 + 2 I},
ColorFunction -> ((Sow[{##}]; If[#1 == 1,
Black,
RGBColor[(1 - #3)^2, (1 - #3)^3, 1 - #3]]) &)
]
]
and noticed that it has exactly five arguments. The first, second and third arguments are real numbers between 0.
and 1.
, while the fourth is an integer and the fifth is a complex number.
I think the third argument is proportional to the number of iterations. What do the other arguments mean?
Update:
I think Mathematica just calculates the upper half of the Mandelbrot set.
Graphics[{PointSize@0,
Point[{Re@#, Im@#} & /@
Reap[MandelbrotSetPlot[ColorFunction -> (Sow@#5 &)]][[2, 1]]]}]
#3
not#
. First and the second arguments are coordinates. Here they are in (0,1) interval becauseColorFunctionScaling
isTrue
. $\endgroup$