The RGB range is 0x000000 to 0xFFFFFF (256^3 possibilities?)
Correct, in selecting a RGB colour, there are 256^3 possibilities

-- but
The Interpolation that the GPS dll does, between the 18 x 1000ft layers ( 0 - 18,000ft), is done with a resolution of (of approx) 8 bits. So, there are in fact ,less possible values displayable.
I say APPROX, because when I checked with a 1000ft = 0xFFFFFF and 2000ft = 0x000000, and took a screen shot, and examined the colors (grey Scale ), and they seems to be changing in approx 8 bit resolution, but not quite
ie Something like : 0, 8, 16, 23, 31, 38 ( not 0, 8, 16, 24, 32, 40 .. )
Maybe its a Floating point Maths thing, or its like 30 levels for each of the R, G, B colors (not 32). (or every 10 meters ???)
Anyway, my point is that when you set the 1000ft Boundary values to specific colours, P3D Interpolates colours between those defined 1000ft levels, to give a far smoother color transition, as one moves through each of the 1000ft bands.
===========
Getting back to the original post, this would mean that one could have a plane flying at altitude X, and display terrian below that aircrft down to (say) X-1000ft, in MANY colours.
See the Grey Scale map in the previous post. It is showing elevation from 0 to 1000ft, and you can certainly see a lot of detail in the elevation.
BTW: I saw on Avsim in the past few weeeks, some developer has released a TERRAIN DISPLAY, that appears to take advantage of this interpolation, to show details of the Terrian around the Aircraft, which is, I think, was what the original Author of this post was talking about.
If a way was found to Change these 1000ft layer colours, without causing display flicker, and by dynamically CALCULATING these values in real time, based on airacft height etc, then a very smooth and detailed colour display could be generated, showing Terrian around an aircraft, with very high resolution for altitudes within a specified Maximum deviation from the Aircraft altitude. Could be VERY COOL

Geoff