| Package | ardisia.utils |
| Class | public final class HSVColor |
| Inheritance | HSVColor Object |
The Flex SDK refers to the HSV color space as the HSB color space. The Flex SDK includes a HSBColor class, but the HSBColor class isn't suitable because it cannot store a hue value of 360 which creates display problems in the ColorSpacePicker.
| Property | Defined By | ||
|---|---|---|---|
| brightness : Number
Brightness. | HSVColor | ||
| hue : Number
Hue. | HSVColor | ||
| saturation : Number
Saturation. | HSVColor | ||
| Method | Defined By | ||
|---|---|---|---|
HSVColor(hue:Number = 1, saturation:Number = 1, brightness:Number = 1) | HSVColor | ||
convertHSVtoRGB(h:Number, s:Number, v:Number):uint [static]
Convert HSV color to RGB. | HSVColor | ||
convertRGBtoHSV(rgb:uint):HSVColor [static]
Convert RGB color to HSV. | HSVColor | ||
| brightness | property |
public var brightness:NumberBrightness. Varies from 0 to 1.
The default value is 1.
| hue | property |
hue:NumberHue. Varies from 0 to 360.
The default value is 1.
public function get hue():Number public function set hue(value:Number):void| saturation | property |
public var saturation:NumberSaturation. Varies from 0 to 1.
The default value is 1.
| HSVColor | () | Constructor |
public function HSVColor(hue:Number = 1, saturation:Number = 1, brightness:Number = 1)hue:Number (default = 1) | |
saturation:Number (default = 1) | |
brightness:Number (default = 1) |
| convertHSVtoRGB | () | method |
public static function convertHSVtoRGB(h:Number, s:Number, v:Number):uintConvert HSV color to RGB.
Hue set is [0, 360]; Saturation and brightness sets are [0, 1].
Parameters
h:Number — hue value
| |
s:Number — saturation value
| |
v:Number — brightness value
|
uint — the uint RGB color
|
| convertRGBtoHSV | () | method |
public static function convertRGBtoHSV(rgb:uint):HSVColorConvert RGB color to HSV.
Hue set is [0 - 360]; Saturation and Luminosity sets are [0, 1].
Parameters
rgb:uint — a RGB color value
|
HSVColor — An HSVColor object
|