# Controling the color of a parametric surface.

I would like to represent a complex valued function on a parametric surface. I know that the complex_plot function can represent a complex function using colors. Is there a way of using it to color parametric surfaces? In other words, can I define the colors of the points of a parametric surface in terms of the two parameters in a natural and easy way?

I guess I'm looking for something that looks like the following picture: http://mailinglists.scilab.org/Plotting-functions-of-spherical-coordinates-on-a-sphere-td4025441.html

If you haven't seen it yet, you could take a look at the answer here: http://ask.sagemath.org/question/1405/how-to-color-a-3d-plot-by-z-level (works for 3d graphs).

@niles: I have seen that link before, but thanks for sharing it anyway. What I want is a little more complex than that I think. I want the colors to represent the values of a complex-valued function defined on a parametric surface. I don't really know how to adapt the answer given in that thread to achieve what I want. Maybe you have some ideas?

@Raul: Yeah, the answer there didn't work for me either, and I haven't (yet) gotten back to it. This is definitely possible in some sense, but a simple interface to it is not currently available. I don't have anything beyond the sage worksheet linked to from ticket #12212