패키지 | mx.utils |
클래스 | public class ColorUtil |
상속 | ColorUtil Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
ColorUtil.adjustBrightness()
method.
공용 속성
공용 메서드
메서드 | 정의 주체 | ||
---|---|---|---|
[정적]
Performs a linear brightness adjustment of an RGB color. | ColorUtil | ||
[정적]
Performs a scaled brightness adjustment of an RGB color. | ColorUtil | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
[정적]
Performs an RGB multiplication of two RGB colors. | ColorUtil | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
메서드 세부 정보
adjustBrightness | () | 메서드 |
public static function adjustBrightness(rgb:uint, brite:Number):uint
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | 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.
매개 변수
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 | () | 메서드 |
public static function adjustBrightness2(rgb:uint, brite:Number):uint
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Performs a scaled brightness adjustment of an RGB color.
매개 변수
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 | () | 메서드 |
public static function rgbMultiply(rgb1:uint, rgb2:uint):uint
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | 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.
매개 변수
rgb1:uint — First RGB color.
| |
rgb2:uint — Second RGB color.
|
uint — RGB multiplication of the two colors.
|
Tue Jun 12 2018, 03:17 PM Z