Add

Function
The Add function adds color to the R, G, B, A, or Z channels. This adds color to black areas, including those beyond the image frame, in case you move the image later. Any correction that occurs outside of the DOD can be corrected with the SetBGColor node. Shake’s color is described in a range of 0 to 1, so adding -1, -1, -1 makes your image completely black. If you add the fifth value, depth, you effectively add a Z-channel with your add value to the image.

Parameters
Type
Defaults
Function
red, green, blue, alpha, depth
float
0,0,0,0,0
The amount to add to the RGBAZ channels of the image. Shake's color is described as 0 to 1, so add 1, 1, 1 to make your image completely white.


Synopsis

image Add( image,   
  float red,    
  float green,    
  float blue,   
  float alpha,    
  float depth 
);


Script

image = Add(image, red, green, blue, alpha, depth);


Command Line

shake -add red green blue alpha depth


Examples

shake lisa.iff -add .2
shake lisa.iff -add .1 .5 .2
shake lisa.iff -add .1 .5 .2 .2
shake lisa.iff -add .1 .5 .2 .2 -savescript example.shk


See Also
Mult, Gamma