|
a=GETPALSIZE("name")
Returns the number of colors in the specified palette.
Palettes use a zero-based index. If the number returned is 256, for instance, then valid palette indices may range from zero to 255.
|
|
a=GETPALETTE("name",index,"chan"["r","g","b"])
Returns the red, green or blue component of the specified palette entry as 0-255.
|
|
a=SETPALETTE("name",index,"chan"["r","g","b"],value) [returns previous value]
This sets the red, green or blue portion of the requested palette. It will return the value of this entry prior to the modification you made.
|