Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Assign RGB values to points on implicit_plot3d graph

Is there a way to assign an explicit RGB color to each point satisfying an equation of the form f(x,y,z)=c? For instance, I would like it if the command

implicit_plot3d(x+y+z==1,(x,0,1),(y,0,1),(z,0,1),color=(x,y,z))

colored the standard 2-simplex in R^3 according to the associated RGB values, but it doesn't. I'm aware that one can use colormaps and functions R^3 -> R to color the output of implicit_plot3d but I would like to use a function R^3 -> [0,1]^3 to do the coloring.