AddShadow
Function
This takes the alpha of an image, colors, blurs, fades and moves it, and then
comps it under the input, making a cheap shadow effect. It is different from
DropShadow in that it already
comps 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