Clamp
Function
This function clamps off values above and below a certain range, ie, if your
redHi value is .7, any value above that will be set to .7. You can isolate the
Red, Green, Blue, and Alpha values.
Parameters
|
Type
|
Defaults
|
Function
|
Lo |
float
|
0,0,0,0
|
The low value to which all values are set to if they are less than this number. 0 means no change. |
Hi |
float
|
1,1,1,1
|
The high value to which all values are set to if they are more than this number. 1 means no change. |
Synopsis
image Clamp( image, float rLo, float gLo, float bLo, float aLo, float rHi, float gHi, float bHi, float aHi );
Script
image = Clamp( image, rLo, gLo, bLo, aLo rHi, gHi, bHi, aHi );
Command Line
shake -clamp rLo gLo etc....
Examples
shake lisa.iff -clamp .5
shake lisa.iff -clamp 0 0 0 0 .5
shake lisa.iff -clamp .5 rLo rLo 0 .6 rHi rHi 1