Structure that represents a color
OperationsDefault black color
New()
RGB Color with alpha set to 255
New(r:Int, g:Int, b:Int)
Name | Type | Description |
---|---|---|
r | Int | red |
g | Int | green |
b | Int | blue |
RGBA color
New(r:Int, g:Int, b:Int, a:Int)
Name | Type | Description |
---|---|---|
r | Int | red |
g | Int | green |
b | Int | blue |
a | Int | alpha |
Get alpha
method : public : GetA() ~ Int
Type | Description |
---|---|
Int | alpha |
Get blue
method : public : GetB() ~ Int
Type | Description |
---|---|
Int | blue |
Get green
method : public : GetG() ~ Int
Type | Description |
---|---|
Int | green |
Get red
method : public : GetR() ~ Int
Type | Description |
---|---|
Int | red |
Set alpha
method : public : SetA(a:Int) ~ Nil
Name | Type | Description |
---|---|---|
a | Int | alpha |
Set blue
method : public : SetB(b:Int) ~ Nil
Name | Type | Description |
---|---|---|
b | Int | blue |
Set green
method : public : SetG(g:Int) ~ Nil
Name | Type | Description |
---|---|---|
g | Int | green |
Set red
method : public : SetR(r:Int) ~ Nil
Name | Type | Description |
---|---|---|
r | Int | red |
String RGBA representation
method : public : ToString() ~ String
Type | Description |
---|---|
String | string representation |