CLR2LUM Name
CLR2LUM Purpose
Compute luminance from a 24-bit color value.
Category
Calling Sequence
lum = clr2lum(lum) Inputs
clr = 24-bit color value. in
Keyword Parameters
Keywords
/BW Return the color white if lum < 128 else black.
The gives a contrasting color for things like text.
Outputs
lum = returned luminance. out
Range is Min=0., Max=255. Common Blocks
Notes
Modification History
R. Sterner, 2004 Mar 12
R. Sterner, 2010 Apr 30 --- Converted arrays from () to [].
Copyright (C) 2004, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.