User Guide

Lingo Dictionary 193
directionalColor
Syntax
member(whichCastmember).directionalColor
Description
3D cast member property; indicates the RGB color of the default directional light of the cast member.
The default value of this property is rgb(255, 255, 255).
Example
This statement sets the directionalColor property of the cast member named Room to rgb(0,
255, 0). The default directional light of the cast member will be green. This property can also be
set in the Property inspector.
member("Room").directionalcolor = rgb(0, 255, 0)
See also
directionalPreset
directionalPreset
Syntax
member(whichCastmember).directionalPreset
Description
3D cast member property; indicates the direction from which the default directional light shines,
relative to the camera of the sprite.
Changing the value of this property results in changes to the
position and rotation properties
of the light’s transform.
Possible values of
directionalPreset include the following:
#topLeft
#topCenter
#topRight
#middleLeft
#middleCenter
#middleRight
#bottomLeft
#bottomCenter
#bottomRight
#None
The default value of this property is #topCenter.
Example
This statement sets the directionalPreset property of the cast member named Room to
#middleCenter. This points the default light of Room so it will shine on the middle center the
current view of the camera of the sprite. This property can also be set in the Property inspector.
member("Room").directionalpreset = #middleCenter
See also
directionalColor