User Guide
color (light) 697
put newColorObj
-- paletteIndex(45)
This statement changes the color of the fourth through the seventh characters of text member
myQuotes:
member("myQuotes").char[4..7].color = rgb(200, 150, 75)
This Lingo displays the color of sprite 6 in the Message window, and then sets the color of sprite
6 to a new RGB value:
put sprite(6).color
-- rgb( 255, 204, 102 )
sprite(6).color = rgb(122, 98, 210)
Note: Setting the
paletteIndex value of an RGB color type changes colorType to paletteIndex.
Setting the RGB color type of a
paletteIndex color sets its colorType value to RGB.
See also
bgColor (Window)
color (fog)
Usage
member(whichCastmember).camera(whichCamera).fog.color
sprite(whichSprite).camera{(index)}.fog.color
Description
3D property; indicates the color introduced into the scene by the camera when the camera’s
fog.enabled property is set to TRUE.
The default setting for this property is
rgb(0, 0, 0).
Example
This statement sets the color of the fog of the camera named BayView to rgb(255, 0, 0). If the
camera’s
fog.enabled property is set to TRUE, models in the fog will take on a red hue.
member("MyYard").camera("BayView").fog.color = rgb(255, 0, 0)
See also
fog
color (light)
Usage
member(whichCastmember).light(whichLight).color
Description
3D light property; indicates the rgb value of the light.
The default value of this property is rgb(191,191,191).
Example
This statement sets the color of the light named RoomLight to rgb(255, 0, 255).
member("Room").light("RoomLight").color = rgb(255,0,255)