This is a child page. You can use Parent in the quick nav bar at the top or the bottom of the page to navigate directly back to the parent of this page. Some child pages are more than one level deep, and in that case will require more than one Parent click to reach the outermost document level. |
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. |