| Pakiet | mx.utils |
| Klasa | public final class HSBColor |
| Dziedziczenie | HSBColor Object |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| brightness : Number
The brightness parameter for this HSB color. | HSBColor | ||
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | |
| hue : Number
The hue value for the HSB color. | HSBColor | ||
| saturation : Number
The saturation parameter for this HSB color. | HSBColor | ||
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Constructs an HSBColor with optional parameters. | HSBColor | ||
[statyczny]
Converts an HSB color specified by the parameters to a
uint RGB color. | HSBColor | ||
[statyczny]
Converts a color from RGB format into an HSBColor. | HSBColor | ||
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
brightness | właściwość |
brightness:Number| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | 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.
Implementacja
public function get brightness():Number public function set brightness(value:Number):voidhue | właściwość |
hue:Number| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | 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).
Implementacja
public function get hue():Number public function set hue(value:Number):voidsaturation | właściwość |
saturation:Number| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | 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.
Implementacja
public function get saturation():Number public function set saturation(value:Number):voidHSBColor | () | Konstruktor |
public function HSBColor(hue:Number = NaN, saturation:Number = NaN, brightness:Number = NaN)| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Constructs an HSBColor with optional parameters.
Parametryhue:Number (default = NaN) — The hue.
| |
saturation:Number (default = NaN) — The saturation.
| |
brightness:Number (default = NaN) — The brightness.
|
convertHSBtoRGB | () | metoda |
public static function convertHSBtoRGB(hue:Number, saturation:Number, brightness:Number):uint| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Converts an HSB color specified by the parameters to a uint RGB color.
Parametry
hue:Number — The hue.
| |
saturation:Number — The saturation.
| |
brightness:Number — The brightness.
|
uint — An RGB color.
|
convertRGBtoHSB | () | metoda |
public static function convertRGBtoHSB(rgb:uint):HSBColor| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Converts a color from RGB format into an HSBColor.
Parametry
rgb:uint — The RGB color.
|
HSBColor — The HSBColor object representing the RGB color.
|
Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne