Page 217
Quick Nav Bar
<<   Previous Contents
Selection
Op Index
Parent User Notes
Index
Glossary
Next   >>


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.


Quick Nav Bar
<<   Previous Contents
Selection
Op Index
Parent User Notes
Index
Glossary
Next   >>
Page 217

WinImages F/x, WinImages 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 5, Level B

HTML Documentation Management System © 1992-2007 Black Belt Systems