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.

§ 16.96.13 - Working with Palette Data in your scripts

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.

Keyboard Navigation
, Previous Page . Next Page t TOC i Index o Operators g Glossary
WinImages F/x, Morph and all associated documentation
Copyright © 1992-2007 Black Belt Systems ALL RIGHTS RESERVED Under the Pan-American Conventions
WinImages F/x Manual Version 7, Revision 6, Level A

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses python 2.7
Page 271
box