I am trying to understand what is happening in the following code (taken from here):
SphericalPlot3D[1, {θ, 0, π}, {Φ, 0, 2 π},
ColorFunction -> Function[{x, y, z, θ, Φ, r},
ColorData["DarkRainbow"][Cos[5 θ] + Cos[4 Φ]/2]],
ColorFunctionScaling -> False, Mesh -> False, Boxed -> False, Axes -> False]
As only θ and Φ appear in the function, I thought on removing {x, y, z} from the Function parameters. But then I get a different plot. Why?
How is the function evaluated, what is happening behind the scenes?
The docs are not clear on how the arguments are passed.
https://reference.wolfram.com/language/ref/ColorFunction.html
https://reference.wolfram.com/language/ref/SphericalPlot3D.html?q=SphericalPlot3D
https://reference.wolfram.com/language/ref/ColorData.html?q=ColorData