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)
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...