Packagecom.threerings.display
Classpublic class ColorUtil

Color utility methods. See also mx.utils.ColorUtil.



Public Methods
 MethodDefined by
  
blend(first:uint, second:uint, firstPerc:Number = 0.5):uint
[static] Blend the two colors, either 50-50 or according to the ratio specified.
ColorUtil
  
getHue(color:uint):Number
[static] Returns a color's Hue value, in degrees.
ColorUtil
Protected Constants
 ConstantDefined by
  R2D : Number
[static]
ColorUtil
  ROOT_3 : Number
[static]
ColorUtil
Method detail
blend()method
public static function blend(first:uint, second:uint, firstPerc:Number = 0.5):uint

Blend the two colors, either 50-50 or according to the ratio specified.

Parameters
first:uint
 
second:uint
 
firstPerc:Number (default = 0.5)

Returns
uint
getHue()method 
public static function getHue(color:uint):Number

Returns a color's Hue value, in degrees. 0<=Hue<=360. http://en.wikipedia.org/wiki/Hue

Parameters
color:uint

Returns
Number
Constant detail
R2Dconstant
protected static const R2D:Number
ROOT_3constant 
protected static const ROOT_3:Number