Functions to compute color shadows, light and dark.
Functions
|
|
checkRGBRange
computeColorTriplet
|
|
checkRGBRange
|
checkRGBRange ( value, maxBits=16 )
Make sure the RGB value represents no more than maxBits value.
The computeColorTriplet function is a bit sloppy with math, and
uses this function to clean up values before returning them.
|
|
computeColorTriplet
|
computeColorTriplet ( widget, baseColor )
Compute a set of three colors, given a baseColor.
Returns (baseColor, lightColor, darkColor).
|
|