View Full Version : Custom TV colors

04-15-2009, 03:51 PM
How does one assign custom color values to an array when using the TV command. I know you can LOADCT a already made color table but I want the max number of my array to be a certain color and have certain colors down to the array's minimum value.


04-15-2009, 07:47 PM
Take a look at TVLCT and BYTSCL. Under the hood, LOADCT uses 'TVLCT, red, green, blue' to define the various 'pre-defined' color tables. BYTSCL converts and scales your data to values between 0 and 255, which are the expected ranges for color indicies.

Hope this helps,

Don B.