| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
This class holds information for a color represented in HSB (Hue, Saturation,
and Brightness) space. The main use of the class is simply as storage for
these values, but there are also some utility functions for converting
from and to RGB representations of colors.
brightness:Number| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
The brightness parameter for this HSB color. This is a value between
0 (black) and 1 (full brightness), which represents the distance
from the apex of the HSB cone.
Implementation public function get brightness():Number public function set brightness(value:Number):voidhue:Number| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
The hue value for the HSB color. This represents an angle, in
degrees, around the HSB cone. The supplied value will be modulated
by 360 so that the stored value of hue will be in the range [0,360).
Implementation public function get hue():Number public function set hue(value:Number):voidsaturation:Number| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
The saturation parameter for this HSB color. This is a value between
0 (black) and 1 (full saturation), which represents the distance
from the center in the HSB cone.
Implementation public function get saturation():Number public function set saturation(value:Number):voidpublic function HSBColor(hue:Number = NaN, saturation:Number = NaN, brightness:Number = NaN)| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Constructs an HSBColor with optional parameters
Parameters | hue:Number (default = NaN) |
| |
| saturation:Number (default = NaN) |
| |
| brightness:Number (default = NaN) |
public static function convertHSBtoRGB(hue:Number, saturation:Number, brightness:Number):uint| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Converts an HSB color specified by the parameters to a
uint RGB color.
Parameters
Returns public static function convertRGBtoHSB(rgb:uint):HSBColor| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Converts a color from RGB format into an HSBColor
Parameters
Returns