Apple Shake 4 User Manual

Page 1024

Advertising
background image

1024

Appendix A

The Shake Command-Line Manual

-mult <r> <g> <b> [a] [z]

Multiplies color on a per-channel basis.

-saturation <value>

Saturation change.

Channel Functions

Description

-colorspace

Example:

shake bg.iff -colorsp rgb hls

Converts images to a different colorspace. Indicate the source
space and the destination space.

-copy <image> <clipmode>
<channels>

Copies a channel from your listed image to the incoming image.
Clipmode indicates the resolution you want, with 1 as the second
image, 0 as the input image.

-forcergb

Forces a BW or BWA image into RGB or RGBA format. This is
unnecessary in the Shake interface and can be handled by FileOut
for output, but is awkward in the command line, thus this
function’s raison-d’etre.

-reorder <channels>

Examples:

shake truck.iff -reorder aaaa

shake truck.iff -reorder rgbl

shake bg.iff -reorder grb

Swaps channels. Using letter codes (r, g, b, a, z, l for luminance, and
n for null), indicate what channel should go in the r, g, b, a, and z
channels.

-setalpha <value>

Sets the alpha to your value. To remove an alpha channel from an
image, enter 0.

-switchmatte <image>

Similar to Copy, except only the alpha is swapped. The returned
image is premultiplied.

Compositing Functions

Description

-inside <maskImage>

An inclusion matte. Multiplies the incoming image by the alpha
channel of the image you specify.

-isuba <Image>

Extracts the absolute difference between the two images.

-mix <Image> [percent]

Mixes two images together. 50 percent is half of each image.

-outside <maskImage>

An exclusion matte. Multiplies the incoming image by the inverse
of the alpha channel of the image you specify.

-over <backgroundImage>

Puts the incoming image, assumed to be the premultiplied
foreground, over the background.

-under <foregroundImage>

Puts the incoming image beneath the image you list, which is
assumed to be premultiplied.

-screen <image>

Performs the Screen operation, which is good for reflections and
glows.

Color Functions

Description

Advertising