Class fever.utils.ColorSpace

Description

Provides methods to play with color structure.

See Also

Field Index

HSLRANGE, HSVRANGE

Method Index

hexaToHsl(), hexaToHsv(), hexaToRgb(), hexaToString(), hslToHexa(), hslToHsv(), hslToRgb(), hslToString(), hsvToHexa(), hsvToHsl(), hsvToRgb(), hsvToString(), rgbToHexa(), rgbToHsl(), rgbToHsv(), rgbToString(), stringToHexa(), stringToHsl(), stringToHsv(), stringToRgb()

Field Detail

HSVRANGE

static public HSVRANGE:HSVRange
Constant defines the HSV range used in application.

HSLRANGE

static public HSLRANGE:HSLRange
Constant defines the HSL range used in application.

Method Detail

rgbToHsl

static public function rgbToHsl(rgb:RGB):HSL

Transforms the passed-in RGB object to HSL structure.

rgbToHsv

static public function rgbToHsv(rgb:RGB):HSV

Transforms the passed-in RGB object to HSV structure.

rgbToHexa

static public function rgbToHexa(rgb:RGB):Number

Transforms the passed-in RGB object to hexadecimal number.

rgbToString

static public function rgbToString(rgb:RGB):String

Transforms the passed-in RGB object to hexadecimal strong notation.

hslToRgb

static public function hslToRgb(hsl:HSL):RGB

Transforms the passed-in HSL object to RGB structure.

hslToHsv

static public function hslToHsv(hsl:HSL):HSV

Transforms the passed-in HSL object to HSV structure.

hslToHexa

static public function hslToHexa(hsl:HSL):Number

Transforms the passed-in HSL object to hexadecimal number.

hslToString

static public function hslToString(hsl:HSL):String

Transforms the passed-in HSL object to hexadecimal string notation.

hsvToRgb

static public function hsvToRgb(hsv:HSV):RGB

Transforms the passed-in HSV object to RGB structure.

hsvToHsl

static public function hsvToHsl(hsv:HSV):HSL

Transforms the passed-in HSV object to HSL structure.

hsvToHexa

static public function hsvToHexa(hsv:HSV):Number

Transforms the passed-in HSV object to hexadecimal number.

hsvToString

static public function hsvToString(hsv:HSV):String

Transforms the passed-in HSV object to hexadecimal string notation.

hexaToRgb

static public function hexaToRgb(hexa:Number):RGB

Transforms the passed-in number to RGB instance.

hexaToHsl

static public function hexaToHsl(hexa:Number):HSL

Transforms the passed-in number to HSL instance.

hexaToHsv

static public function hexaToHsv(hexa:Number):HSV

Transforms the passed-in number to HSV instance.

hexaToString

static public function hexaToString(hexa:Number):String

Transforms the passed-in number to hexadecimal string notation.

stringToHexa

static public function stringToHexa(str:String):Number

Transforms the passed-in string to number.

stringToRgb

static public function stringToRgb(str:String):RGB

Transforms the passed-in string to RGB instance.

stringToHsl

static public function stringToHsl(str:String):HSL

Transforms the passed-in string to HSL instance.

stringToHsv

static public function stringToHsv(str:String):HSV

Transforms the passed-in string to HSV instance.