套件 | mx.utils |
類別 | public final class HSBColor |
繼承 | HSBColor Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
屬性 | 定義自 | ||
---|---|---|---|
brightness : Number
The brightness parameter for this HSB color. | HSBColor | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
hue : Number
The hue value for the HSB color. | HSBColor | ||
saturation : Number
The saturation parameter for this HSB color. | HSBColor |
方法 | 定義自 | ||
---|---|---|---|
Constructs an HSBColor with optional parameters. | HSBColor | ||
[靜態]
Converts an HSB color specified by the parameters to a
uint RGB color. | HSBColor | ||
[靜態]
Converts a color from RGB format into an HSBColor. | HSBColor | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
brightness | 屬性 |
brightness:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | 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.
實作
public function get brightness():Number
public function set brightness(value:Number):void
hue | 屬性 |
hue:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | 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).
實作
public function get hue():Number
public function set hue(value:Number):void
saturation | 屬性 |
saturation:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | 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.
實作
public function get saturation():Number
public function set saturation(value:Number):void
HSBColor | () | 建構函式 |
public function HSBColor(hue:Number = NaN, saturation:Number = NaN, brightness:Number = NaN)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Constructs an HSBColor with optional parameters.
參數hue:Number (default = NaN ) — The hue.
| |
saturation:Number (default = NaN ) — The saturation.
| |
brightness:Number (default = NaN ) — The brightness.
|
convertHSBtoRGB | () | 方法 |
public static function convertHSBtoRGB(hue:Number, saturation:Number, brightness:Number):uint
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Converts an HSB color specified by the parameters to a uint RGB color.
參數
hue:Number — The hue.
| |
saturation:Number — The saturation.
| |
brightness:Number — The brightness.
|
uint — An RGB color.
|
convertRGBtoHSB | () | 方法 |
Tue Jun 12 2018, 03:47 PM Z