Main Page | Packages | Class Tree | Index | Help

xp.util

class ColorHelper

Object
  |
  +--xp.util.ColorHelper


class ColorHelper
extends Object

Various Color Manipulation functions


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Method Summary

public static
getColor ( clr: Object )
Converts a RGB color object to a hex value

public static
getColorWheel ( clr )
Returns an color wheel array of six colors based on a specified color

public static
getRGB ( clr: Number ): Object
Converts a color hex value to RGB color object

public static
HSVtoRGB ( HSV )
Converts a HSB color object to a RGB object

public static
RGBtoHSB ( RGB )
Converts a RGB color object to a HSB object



Method Documentation

getColor

public static function getColor(clr: Object)
Converts a RGB color object to a hex value

getColorWheel

public static function getColorWheel(clr)
Returns an color wheel array of six colors based on a specified color

Parameters:
clr
The base or starting color

getRGB

public static function getRGB(clr: Number): Object
Converts a color hex value to RGB color object

HSVtoRGB

public static function HSVtoRGB(HSV)
Converts a HSB color object to a RGB object

RGBtoHSB

public static function RGBtoHSB(RGB)
Converts a RGB color object to a HSB object


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc