emergencyplan
Technical User
Hello,
I have a program that currently displays Digital Elevation Models (DEM) in twenty colours, ranging from dark blue (low elevation RGB(0,0,255) to red (high elevation rgb(255,0,0)).
I now wish to display the DEM in 234 (or 255 replacing black to show the lowest elevations) colours between these to extremes (dark blue - red). Previously I hard-coded the values for the twenty colours, but I was hoping to use code to generate the colour values this time round.
Any ideas?? Many thanks.
Laurence
I have a program that currently displays Digital Elevation Models (DEM) in twenty colours, ranging from dark blue (low elevation RGB(0,0,255) to red (high elevation rgb(255,0,0)).
I now wish to display the DEM in 234 (or 255 replacing black to show the lowest elevations) colours between these to extremes (dark blue - red). Previously I hard-coded the values for the twenty colours, but I was hoping to use code to generate the colour values this time round.
Any ideas?? Many thanks.
Laurence