
Using sprite inks
79
Ink definitions
The following definitions describe all available ink types.
Copy
displays all the original colors in a sprite. All colors, including white, are opaque unless the
image contains alpha channel effects (transparency). Copy is the default ink and is useful for
backgrounds or for sprites that don’t appear in front of other artwork. If the cast member is not
rectangular, a white box appears around the sprite when it passes in front of another sprite or
appears on a nonwhite background. Sprites with the Copy ink animate faster than sprites
with any other ink.
Matte
removes the white bounding rectangle around a sprite. Artwork within the boundaries is
opaque. Matte functions much like the Lasso tool in the Paint window in that the artwork is
outlined rather than enclosed in a rectangle. Matte, like Mask, uses more RAM than the other
inks, and sprites with this ink animate more slowly than other sprites.
Background Transparent
makes all the pixels in the background color of the selected sprite
appear transparent and permits the background to be seen.
Transparent
makes all light colors transparent so you can see lighter objects beneath the sprite.
Reverse
reverses overlapping colors. When applied to the foreground sprite, where colors
overlap, the upper color changes to the chromatic opposite (based on the color palette currently in
use) of the color beneath it. Pixels that were originally white become transparent and let the
background show through unchanged. Reverse is good for creating custom masks.
Ghost
, like Reverse, reverses overlapping colors, except nonoverlapping colors are transparent.
The sprite is not visible unless it is overlapping another sprite.
Not Copy
reverses all the colors in an image to create a chromatic negative of the original.
Not Transparent, Not Reverse
, and
Not Ghost
are all variations of other effects. The foreground
image is first reversed, then the Copy, Transparent, Reverse, or Ghost ink is applied. These inks
are good for creating odd effects.
Mask
determines the exact transparent or opaque parts of a sprite. For Mask ink to work, you
must place a mask cast member in the Cast window position immediately following the cast
member to be masked. The black areas of the mask make the sprite opaque, and white areas are
transparent. Colors between black and white are more or less transparent; darker colors are more
opaque. See
“Using Mask ink to create transparency effects” on page 77
.
Blend
ensures that the sprite uses the color blend percentage that is specified on the Sprite tab in
the Property inspector. See
“Setting blends” on page 76
.
Darkest
compares RGB pixel colors in the foreground and background and uses the darkest
pixel color.
Lightest
compares RGB pixel colors in the foreground and background and uses the lightest
pixel color.
Add
creates a new color that is the result of adding the RGB color value of the foreground sprite
to the color value of the background sprite. If the value of the two colors exceeds the maximum
RGB color value (255), Director subtracts 256 from the remaining value so the result is between
0 and 255.
Add Pin
is similar to Add. The foreground sprite's RGB color value is added to the background
sprite's RGB color value, but the color value is not allowed to exceed 255. If the value of the new
color exceeds 255, the value is reduced to 255.
Содержание DIRECTOR MX 2004-USING DIRECTOR
Страница 1: ...DIRECTOR MX 2004 Using Director...
Страница 16: ...16 Chapter 1 Introduction...
Страница 82: ...82 Chapter 3 Sprites...
Страница 98: ...98 Chapter 4 Animation...
Страница 134: ...134 Chapter 5 Bitmaps...
Страница 242: ...242 Chapter 10 Sound and Synchronization...
Страница 274: ...274 Chapter 11 Using Digital Video...
Страница 290: ...290 Chapter 12 Behaviors...
Страница 302: ...302 Chapter 13 Navigation and User Interaction...
Страница 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Страница 392: ...392 Chapter 16 Working with Models and Model Resources...
Страница 418: ...418 Chapter 18 Movies in a Window...
Страница 446: ...446 Chapter 22 Managing and Testing Director Projects...