COLORCHECK

THE BOX'S MAIN HELP:
Use to check for colors outside the range 0.0 - 1.0. 
Normally IN is passed to both EOUT and COUT, unless IN falls outside 0.0 - 1.0,
in which case EOUT passes the Error Color (ERR), and COUT passes IN clamped 0.0 to 1.0.

IN (input):
Input color to be checked.

PRINT (input):
This controls whether to print color transgressions or not.
If True and IN falls outside 0.0 - 1.0, IN is printed to the screen.

ERR (input):
The 'Error Color'.
If any RGBA component of IN goes outside the range 0 - 1,
this 'error color' is returned on OUT.

EOUT (output):
Error Color. Use this to flag 'out of range' colors with the error color.
This normally passes the color of IN, unless it is outside 0.0 - 1.0,
in which case it is replaced with the error color (ERR).

COUT (output):
Clamped Output Color. Does NOT include the error color.
If the input color falls outside the range 0.0 - 1.0, it is clamped.

ERRFLAG (output):
Print flag output.
Returns miTRUE if failed range test.
Use this output to trigger other actions to occur.

<-- BACK TO Functions

© Copyright 1996,1998 Cinema Graphics Inc. All Rights reserved.