blend (Sprite)
657
Description
3D backdrop, overlay, and
#standard
shader property; indicates the opacity of the backdrop,
overlay, or shader.
Setting the
blend
property of a shader will have no effect unless the shader’s
transparent
property is set to
TRUE
.
The range of this property is 0 to 100, and the default value is 100.
Example
This statement sets the blend property of the shader for the model named Window to 80. If the
transparent
property of Window’s shader is set to
TRUE
, the model will be slightly transparent.
member("House").model("Window").shader.blend = 80
See also
bevelDepth
,
overlay
,
shadowPercentage
,
transparent
blend (Sprite)
Usage
-- Lingo syntax
spriteObjRef
.blend
// JavaScript syntax
spriteObjRef
.blend;
Description
Sprite property; returns or sets a sprite’s blend value, from 0 to 100, corresponding to the blend
values in the Sprite Properties dialog box. Read/write.
The possible colors depend on the colors available in the palette, regardless of the monitor’s
color depth.
For best results, use the blend ink with images that have a color depth greater than 8-bit.
Example
The following statement sets the blend value of sprite 3 to 40 percent.
-- Lingo syntax
sprite(3).blend = 40
// JavaScript syntax
sprite(3).blend = 40;
This statement displays the blend value of sprite 3 in the Message window:
-- Lingo syntax
put(sprite(3).blend)
// JavaScript syntax
put(sprite(3).blend);
See also
blendLevel
,
Sprite
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
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...