COLOR2SCALAR

THE BOX'S MAIN HELP:
This function takes a scalar, S and returns the color(S,S,S,S).

This is function takes a color C and returns a scalar, S.
S is the intensity calculated by averaging the color components.
The return value is S = (RED + GREEN + BLUE)/3.

C (input):
This must be a color.  The default is WHITE.

S (output):
This function returns the intensity S of color C.

<-- BACK TO Components

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