UI UI\Draw\Color
(UI 0.9.9)
소개
RGBA 색상을 나타내며 개별 채널은 공용 자산을 통해 액세스할 수 있습니다.
클래스 개요
class UI\Draw\Color {
/* Constants */
const int Red;
const int Green;
const int Blue;
const int Alpha;
/* Properties */
public $r;
public $g;
public $b;
public $a;
/* Constructor */
public __construct(UI\Draw\Color $color = ?)
public __construct(int $color = ?)
/* Methods */
public getChannel(int $channel): float
public setChannel(int $channel, float $value): void
}
Properties
- r
- 빨간색 채널에 대한 액세스를 제공합니다.
- g
- 녹색 채널에 대한 액세스 제공
- b
- 블루 채널에 대한 액세스를 제공합니다.
- a
- 알파 채널에 대한 액세스를 제공합니다.
미리 정의된 상수
UI\Draw\Color::Red
- 빨간색 채널을 식별합니다.
UI\Draw\Color::Green
- 녹색 채널을 식별합니다.
UI\Draw\Color::Blue
- 파란색 채널을 식별합니다.
UI\Draw\Color::Alpha
- 알파 채널을 식별합니다.
목차
- UI\Draw\Color::__construct — Construct new Color
- UI\Draw\Color::getChannel — Color Manipulation
- UI\Draw\Color::setChannel — Color Manipulation