Question: Plot regions with procedure

Hello, Could anybody please tell me how to plot regions using a procedure in maple. Specifically I have a procedure f of two variables that can output an integer between 1 and n. I want a 2 dimensional plot that gives a different color for each value of this procedure. Any help is much appreciated -- thanks. PS: As an example I tried this: > g := proc (x, y) if x <> plot3d(1, x = 0 .. 2, y = 0 .. 2, color = g(x, y)); But this results in the following error: Error, (in g) cannot determine if this expression is true or false x
Please Wait...