How to add color for 3d terrain

Hello,

Take a look at this example:
RGBCube \ Examples \ Processing.org

Think about how to apply this to the terrain code.

Consider mapping colors to one of the axes and apply that to a vertex.

Other references for color:

:)

Update:

I followed my initial vision and tried this:

HSB colorMode was used.

Have fun!