Lingo Dictionary > G-K > ink |
![]() ![]() ![]() |
ink
Syntax
sprite(
whichSprite
).ink
the ink of sprite
whichSprite
Description
Sprite property; determines the ink effect applied to the sprite specified by whichSprite
, as follows:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For a movie that plays back as an applet, valid values for the ink
sprite property vary for different sprites, as follows:
![]() |
For bitmap sprites, the |
![]() |
For Flash and shape sprites, the |
![]() |
For Vector shape sprites, the |
![]() |
For field sprites, the |
In the case of 36 (background transparent), you select a sprite in the score and select a transparency color from the background color box in the Tools window. You can also do this by setting the backColor
property.
If you set this property within a script while the playback head is not moving, be sure to use the updateStage
command to redraw the Stage. If you change several sprite propertiesor several spritesuse only one updateStage
command at the end of all the changes.
This property can be tested and set.
Example
This statement changes the variable currentInk to the value for the ink effect of sprite (3):
currentInk = sprite(3).ink
Example
This statement gives sprite (i + 1) a matte ink effect by setting the ink effect of the sprite property to 8, which specifies matte ink:
sprite(i + 1).ink = 8
See also
![]() ![]() ![]() |