Pacchetto | mx.utils |
Classe | public final class HSBColor |
Ereditarietà | HSBColor Object |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Proprietà | Definito da | ||
---|---|---|---|
brightness : Number
The brightness parameter for this HSB color. | HSBColor | ||
constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | ||
hue : Number
The hue value for the HSB color. | HSBColor | ||
saturation : Number
The saturation parameter for this HSB color. | HSBColor |
Metodo | Definito da | ||
---|---|---|---|
Constructs an HSBColor with optional parameters. | HSBColor | ||
[statico]
Converts an HSB color specified by the parameters to a
uint RGB color. | HSBColor | ||
[statico]
Converts a color from RGB format into an HSBColor. | HSBColor | ||
Indica se per un oggetto è definita una proprietà specifica. | Object | ||
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | ||
Indica se la proprietà specificata esiste ed è enumerabile. | Object | ||
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | ||
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | ||
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | ||
Restituisce il valore di base dell'oggetto specificato. | Object |
brightness | proprietà |
brightness:Number
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni 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.
Implementazione
public function get brightness():Number
public function set brightness(value:Number):void
hue | proprietà |
hue:Number
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni 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).
Implementazione
public function get hue():Number
public function set hue(value:Number):void
saturation | proprietà |
saturation:Number
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni 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.
Implementazione
public function get saturation():Number
public function set saturation(value:Number):void
HSBColor | () | Funzione di costruzione |
public function HSBColor(hue:Number = NaN, saturation:Number = NaN, brightness:Number = NaN)
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Constructs an HSBColor with optional parameters.
Parametrihue:Number (default = NaN ) — The hue.
| |
saturation:Number (default = NaN ) — The saturation.
| |
brightness:Number (default = NaN ) — The brightness.
|
convertHSBtoRGB | () | metodo |
public static function convertHSBtoRGB(hue:Number, saturation:Number, brightness:Number):uint
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Converts an HSB color specified by the parameters to a uint RGB color.
Parametri
hue:Number — The hue.
| |
saturation:Number — The saturation.
| |
brightness:Number — The brightness.
|
uint — An RGB color.
|
convertRGBtoHSB | () | metodo |
public static function convertRGBtoHSB(rgb:uint):HSBColor
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Converts a color from RGB format into an HSBColor.
Parametri
rgb:uint — The RGB color.
|
HSBColor — The HSBColor object representing the RGB color.
|
Tue Jun 12 2018, 02:44 PM Z