We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a fractal terrain generator I wrote and it stores the values in a 2D int array. It displays the wire frame mesh of this on screen and it looks cool but is there a way to recolor these points without changing the way they are already drawn? sort of like using the pixels array to change color based on position but where it colors them by their position in 3d space. or do i have to change the stroke color before i put the points down. is there any way to make it so when drawing a line it colors it differently in different spot dependent on the position of the point on the line? And finally any ideas on a way to change color on a wire frame height-map based on depth. Sorry if this is confusing ill try to explain if you don't understand what i'm asking.