| Package | mx.utils | 
| Class | public final class HSBColor | 
| Inheritance | HSBColor    Object | 
| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 4 | 
| Runtime Versions: | Flash Player 10, AIR 1.5 | 
| Property | Defined By | ||
|---|---|---|---|
| brightness : Number 
     The brightness parameter for this HSB color.  | HSBColor | ||
![]()  | constructor : Object 
	 A reference to the class object or constructor function for a given object instance.  | Object | |
| hue : Number 
     The hue value for the HSB color.  | HSBColor | ||
| saturation : Number 
     The saturation parameter for this HSB color.  | HSBColor | ||
| Method | Defined By | ||
|---|---|---|---|
      Constructs an HSBColor with optional parameters.  | HSBColor | ||
[static] 
      Converts an HSB color specified by the parameters to a
      uint RGB color.  | HSBColor | ||
[static] 
      Converts a color from RGB format into an HSBColor.  | HSBColor | ||
![]()  | 
	 Indicates whether an object has a specified property defined.  | Object | |
![]()  | 
	 Indicates whether an instance of the Object class is in the prototype chain of the object specified 
	 as the parameter.  | Object | |
![]()  | 
	 Indicates whether the specified property exists and is enumerable.  | Object | |
![]()  | 
     Sets the availability of a dynamic property for loop operations.  | Object | |
![]()  | 
	 Returns the string representation of this object, formatted according to locale-specific conventions.  | Object | |
![]()  | 
	 Returns the string representation of the specified object.  | Object | |
![]()  | 
	 Returns the primitive value of the specified object.  | Object | |
brightness | property | 
brightness:Number| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 4 | 
| 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 | property | 
hue:Number| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 4 | 
| 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 | property | 
saturation:Number| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 4 | 
| 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):voidHSBColor | () | Constructor | 
public function HSBColor(hue:Number = NaN, saturation:Number = NaN, brightness:Number = NaN)| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 4 | 
| Runtime Versions: | Flash Player 10, AIR 1.5 | 
Constructs an HSBColor with optional parameters.
Parametershue:Number (default = NaN) — The hue.
     
       | |
saturation:Number (default = NaN) — The saturation.
     
       | |
brightness:Number (default = NaN) — The brightness.
      
       | 
convertHSBtoRGB | () | method | 
 public static function convertHSBtoRGB(hue:Number, saturation:Number, brightness:Number):uint| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 4 | 
| Runtime Versions: | Flash Player 10, AIR 1.5 | 
Converts an HSB color specified by the parameters to a uint RGB color.
Parameters
hue:Number — The hue.
     
       | |
saturation:Number — The saturation.
     
       | |
brightness:Number — The brightness.
     
       | 
uint — An RGB color.
      
       | 
convertRGBtoHSB | () | method | 
 public static function convertRGBtoHSB(rgb:uint):HSBColor| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 4 | 
| Runtime Versions: | Flash Player 10, AIR 1.5 | 
Converts a color from RGB format into an HSBColor.
Parameters
rgb:uint — The RGB color.
     
       | 
HSBColor — The HSBColor object representing the RGB color. 
      
       | 
Thu Dec 4 2014, 05:50 PM -08:00
 