| Package | frocessing.color |
| Class | public class ColorRGB |
| Implements | IColor |
See also
| Property | Defined by | ||
|---|---|---|---|
| alpha : Number
色の 透明度(Alpha) 値を示します.
有効な値は 0.0 ~ 1.0 です.デフォルト値は 1.0 です. | ColorRGB | ||
| alpha8 : uint
色の 透明度(Alpha) 値を 0~255 で示します.
有効な値は 0~255 です. | ColorRGB | ||
| b : uint
色の 青(Blue) 値を示します.
有効な値は 0 ~ 255 です.デフォルト値は 0 です. | ColorRGB | ||
| g : uint
色の 緑(Green) 値を示します.
有効な値は 0 ~ 255 です.デフォルト値は 0 です. | ColorRGB | ||
| r : uint
色の 赤(Red) 値を示します.
有効な値は 0 ~ 255 です.デフォルト値は 0 です. | ColorRGB | ||
| value : uint
24bit Color (0xRRGGBB) を示します.
| ColorRGB | ||
| value32 : uint
32bit Color (0xAARRGGBB) を示します.
| ColorRGB | ||
| Method | Defined by | ||
|---|---|---|---|
|
ColorRGB(r_:uint = 0, g_:uint = 0, b_:uint = 0, a:Number = 1.0)
新しい ColorRGB クラスのインスタンスを生成します.
| ColorRGB | ||
|
ColorRGB インスタンスのクローンを生成します.
| ColorRGB | ||
|
gray(gray_:uint):void
グレイ値で色を指定します.
| ColorRGB | ||
|
rgb(r_:uint, g_:uint, b_:uint):void
RGB値で色を指定します.
| ColorRGB | ||
|
RGB 値を HSV 値に変換して ColorHSV クラスのインスタンスを生成します.
| ColorRGB | ||
|
toString():String
| ColorRGB | ||
|
valueOf():uint
| ColorRGB | ||
| alpha | property |
alpha:Number [read-write]
色の 透明度(Alpha) 値を示します.
有効な値は 0.0 ~ 1.0 です.デフォルト値は 1.0 です.
public function get alpha():Number
public function set alpha(value:Number):void
| alpha8 | property |
alpha8:uint [read-write]
色の 透明度(Alpha) 値を 0~255 で示します.
有効な値は 0~255 です.
public function get alpha8():uint
public function set alpha8(value:uint):void
| b | property |
b:uint [read-write]
色の 青(Blue) 値を示します.
有効な値は 0 ~ 255 です.デフォルト値は 0 です.
public function get b():uint
public function set b(value:uint):void
| g | property |
g:uint [read-write]
色の 緑(Green) 値を示します.
有効な値は 0 ~ 255 です.デフォルト値は 0 です.
public function get g():uint
public function set g(value:uint):void
| r | property |
r:uint [read-write]
色の 赤(Red) 値を示します.
有効な値は 0 ~ 255 です.デフォルト値は 0 です.
public function get r():uint
public function set r(value:uint):void
| value | property |
value:uint [read-write]24bit Color (0xRRGGBB) を示します.
Implementation public function get value():uint
public function set value(value:uint):void
| value32 | property |
value32:uint [read-write]32bit Color (0xAARRGGBB) を示します.
Implementation public function get value32():uint
public function set value32(value:uint):void
| ColorRGB | () | constructor |
public function ColorRGB(r_:uint = 0, g_:uint = 0, b_:uint = 0, a:Number = 1.0)新しい ColorRGB クラスのインスタンスを生成します.
Parametersr_:uint (default = 0) — Red [0,255]
|
|
g_:uint (default = 0) — Green [0,255]
|
|
b_:uint (default = 0) — Blue [0,255]
|
|
a:Number (default = 1.0) — Alpha [0.0,1.0]
|
| clone | () | method |
| gray | () | method |
public function gray(gray_:uint):voidグレイ値で色を指定します.
Parametersgray_:uint — Gray [0,255]
|
| rgb | () | method |
public function rgb(r_:uint, g_:uint, b_:uint):voidRGB値で色を指定します.
Parametersr_:uint — Red [0,255]
|
|
g_:uint — Green [0,255]
|
|
b_:uint — Blue [0,255]
|
| toHSV | () | method |
| toString | () | method |
public function toString():String
Returns
String |
| valueOf | () | method |
public function valueOf():uintReturns
uint — 0xRRBBGG
|