Pacote | mx.utils |
Classe | public class ColorUtil |
Herança | ColorUtil Object |
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
ColorUtil.adjustBrightness()
method.
Propriedades públicas
Métodos públicos
Método | Definido por | ||
---|---|---|---|
[estático]
Performs a linear brightness adjustment of an RGB color. | ColorUtil | ||
[estático]
Performs a scaled brightness adjustment of an RGB color. | ColorUtil | ||
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 | ||
[estático]
Performs an RGB multiplication of two RGB colors. | ColorUtil | ||
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 |
Detalhes do método
adjustBrightness | () | método |
public static function adjustBrightness(rgb:uint, brite:Number):uint
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Performs a linear brightness adjustment of an RGB color.
The same amount is added to the red, green, and blue channels of an RGB color. Each color channel is limited to the range 0 through 255.
Parâmetros
rgb:uint — Original RGB color.
| |
brite:Number — Amount to be added to each color channel.
The range for this parameter is -255 to 255;
-255 produces black while 255 produces white.
If this parameter is 0, the RGB color returned
is the same as the original color.
|
uint — New RGB color.
|
adjustBrightness2 | () | método |
public static function adjustBrightness2(rgb:uint, brite:Number):uint
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Performs a scaled brightness adjustment of an RGB color.
Parâmetros
rgb:uint — Original RGB color.
| |
brite:Number — The percentage to brighten or darken the original color.
If positive, the original color is brightened toward white
by this percentage. If negative, it is darkened toward black
by this percentage.
The range for this parameter is -100 to 100;
-100 produces black while 100 produces white.
If this parameter is 0, the RGB color returned
is the same as the original color.
|
uint — New RGB color.
|
rgbMultiply | () | método |
public static function rgbMultiply(rgb1:uint, rgb2:uint):uint
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Performs an RGB multiplication of two RGB colors.
This always results in a darker number than either original color unless one of them is white, in which case the other color is returned.
Parâmetros
rgb1:uint — First RGB color.
| |
rgb2:uint — Second RGB color.
|
uint — RGB multiplication of the two colors.
|
Wed Jun 13 2018, 11:10 AM Z