| AddShadow |
Function
The AddShadow function takes the alpha channel of an image, and then colors,
blurs, fades, and moves the alpha channel. Next, the alpha is composited
under the input, creating a cheap shadow effect. It differs from DropShadow
in
that it already
composites the shadow under the element; DropShadow creates an entirely new
shadow element
that can be manipulated separately.
|
Parameters
|
Type
|
Defaults
|
Function
|
| x,yOffset |
float
|
40,-40 | The amount of pixels the shadow is moved away from its origin. |
| fuzzyness |
float
|
60 | The amount of, um, fuzzyness on the shadow. |
| r,g,bShadow |
float
|
.01,.02,.05 | Color of the shadow |
| opacity |
float
|
.6 | A fade value on the shadow, between 0 and 1 |
Synopsis
image AddShadow( image, float xOffset, float yOffset, float fuzzyness, float rShadow, float gShadow, float bShadow, float opacity );
Script
image = AddShadow( image, xOffset, yOffset, fuzzyness, rShadow, gShadow, bShadow, opacity );
Command Line
shake -addshadow xOffset yOffset fuzzyness etc...
Examples
shake man.iff -addsh 20 -20 10 .05 0 .1 .7 -over hallway.jpg
See Also
DropShadow