289
Example
The following statement sets the
highlightPercentage
property of the
toon
modifier for the
model named Sphere to 50. Half of the colors available to the
toon
modifier for this model will
be used for the highlight area of the model’s surface.
member("shapes").model("Sphere").toon.highlightPercentage = 50
See also
highlightStrength
,
brightness
highlightStrength
Syntax
member(
whichCastmember
).model(
whichModel
).toon.highlightStrength
member(
whichCastmember
).model(
whichModel
).shader.highlightStrength
member(
whichCastmember
).shader(
whichShader
).highlightStrength
Description
3D
toon
modifier and
#painter
shader property; indicates the brightness of the area of the
model’s surface where light creates highlights.
The default value of this property is 1.0.
Example
The following statement sets the
highlightStrength
property of the
toon
modifier for the
model named Teapot to 0.5. The model’s highlights will be moderately bright.
member("shapes").model("Teapot").toon.highlightStrength = 0.5
See also
highlightPercentage
,
brightness
hilite (command)
Syntax
fieldChunkExpression.hilite()
hilite
fieldChunkExpression
Description
Command; highlights (selects) in the field sprite the specified chunk, which can be any chunk
that Lingo lets you define, such as a character, word, or line. On the Macintosh, the highlight
color is set in the Color control panel.
Examples
This statement highlights the fourth word in the field cast member Comments, which contains
the string Thought for the Day:
member("Comments").word[4].hilite()
This statement causes highlighted text within the sprite for field myRecipes to be displayed
without highlighting:
myLineCount = member("myRecipes").line.count
member("myRecipes").line[myLin 1].hilite()
See also
char...of
,
item...of
,
line...of
,
word...of
,
delete
,
mouseChar
,
mouseLine
,
mouseWord
,
field
,
selection() (function)
,
selEnd
,
selStart
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...