Pacote | mx.utils |
Classe | public final class HSBColor |
Herança | HSBColor Object |
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4 |
Versões de runtime: | Flash Player 10, AIR 1.5 |
Propriedade | Definido por | ||
---|---|---|---|
brightness : Number
The brightness parameter for this HSB color. | HSBColor | ||
constructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | Object | ||
hue : Number
The hue value for the HSB color. | HSBColor | ||
saturation : Number
The saturation parameter for this HSB color. | HSBColor |
Método | Definido por | ||
---|---|---|---|
Constructs an HSBColor with optional parameters. | HSBColor | ||
[estático]
Converts an HSB color specified by the parameters to a
uint RGB color. | HSBColor | ||
[estático]
Converts a color from RGB format into an HSBColor. | HSBColor | ||
Indica se um objeto tem uma propriedade especificada definida. | Object | ||
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | ||
Indica se a propriedade especificada existe e é enumerável. | Object | ||
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | ||
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | ||
Retorna a representação de string do objeto especificado. | Object | ||
Retorna o valor primitivo do objeto especificado. | Object |
brightness | propriedade |
brightness:Number
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4 |
Versões de runtime: | 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.
Implementação
public function get brightness():Number
public function set brightness(value:Number):void
hue | propriedade |
hue:Number
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4 |
Versões de runtime: | 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).
Implementação
public function get hue():Number
public function set hue(value:Number):void
saturation | propriedade |
saturation:Number
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4 |
Versões de runtime: | 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.
Implementação
public function get saturation():Number
public function set saturation(value:Number):void
HSBColor | () | Construtor |
public function HSBColor(hue:Number = NaN, saturation:Number = NaN, brightness:Number = NaN)
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4 |
Versões de runtime: | Flash Player 10, AIR 1.5 |
Constructs an HSBColor with optional parameters.
Parâmetroshue:Number (default = NaN ) — The hue.
| |
saturation:Number (default = NaN ) — The saturation.
| |
brightness:Number (default = NaN ) — The brightness.
|
convertHSBtoRGB | () | método |
public static function convertHSBtoRGB(hue:Number, saturation:Number, brightness:Number):uint
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4 |
Versões de runtime: | Flash Player 10, AIR 1.5 |
Converts an HSB color specified by the parameters to a uint RGB color.
Parâmetros
hue:Number — The hue.
| |
saturation:Number — The saturation.
| |
brightness:Number — The brightness.
|
uint — An RGB color.
|
convertRGBtoHSB | () | método |
public static function convertRGBtoHSB(rgb:uint):HSBColor
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4 |
Versões de runtime: | Flash Player 10, AIR 1.5 |
Converts a color from RGB format into an HSBColor.
Parâmetros
rgb:uint — The RGB color.
|
HSBColor — The HSBColor object representing the RGB color.
|
Wed Jun 13 2018, 11:10 AM Z