Lingo Dictionary > O-R > paletteRef |
![]() ![]() ![]() |
paletteRef
Syntax
member(
whichCastMember
). paletteRef
the paletteRef
Description
Bitmap cast member property; determines the palette associated with a bitmap cast member. Built-in Director palettes are indicated by symbols (#systemMac
, #rainbow
, and so on). Palettes that are cast members are treated as cast member references. This behavior differs from that of the palette
member property, which returns a positive number for cast palettes and negative numbers for built-in Director palettes.
This property can be tested and set.
Example
This statement assigns the Macintosh system palette to the bitmap cast member Shell:
member("Shell").paletteRef = #systemMac
![]() ![]() ![]() |