public static var colors:Object
Object of colors by name
public static function cleanNumber(num:*):Number
Remove the numeric value of string will all characters removed except '0-9', '.', and '-'
Parameters
Returns
| Number — Numeric value of string will all characters removed except '0-9', '.', and '-'
|
public static function d2h(d:int):String
Convert a decimal number to hex
Parameters
Returns
public static function getColor(color:String):Number
Get the number value of a color string
Parameters
| color:String — String value of a color ('black', '#ff0000', etc...)
|
Returns
| Number — Numeric value of color
|
public static function getHexColor(color:String):String
Get a hex string of a color string
Parameters
| color:String — String value of a color ('black', '#ff0000', etc...)
|
Returns
| String — Hex value of color
|
public static function numberToRgb(num:Number):Object
Convert a color number to red, green and blue values
Parameters
Returns
public static function rgbToNumber(r:uint, g:uint, b:uint):NumberParameters
Returns