Class RGBA
Package: @altmp/altv-types
Syntax
Constructors
|
Improve this Doc
View Source
RGBA(number, number, number, number)
Declaration
RGBA(r: number, g: number, b: number, a?: number): RGBA
Parameters
Type |
Name |
Description |
number |
r |
|
number |
g |
|
number |
b |
|
number |
a |
|
|
Improve this Doc
View Source
RGBA([r | g | b | a])
Declaration
RGBA(array: [r | g | b | a]): RGBA
Parameters
Type |
Name |
Description |
[r | g | b | a] |
array |
|
|
Improve this Doc
View Source
RGBA({ r: number })
Declaration
RGBA(rgba: { r: number }): RGBA
Parameters
Type |
Name |
Description |
{ r: number } |
rgba |
|
Properties
|
Improve this Doc
View Source
red
Declaration
public readonly static red: RGBA
Property Value
|
Improve this Doc
View Source
green
Declaration
public readonly static green: RGBA
Property Value
|
Improve this Doc
View Source
blue
Declaration
public readonly static blue: RGBA
Property Value
|
Improve this Doc
View Source
black
Declaration
public readonly static black: RGBA
Property Value
|
Improve this Doc
View Source
white
Declaration
public readonly static white: RGBA
Property Value
|
Improve this Doc
View Source
clear
Declaration
public readonly static clear: RGBA
Property Value
|
Improve this Doc
View Source
r
Declaration
Property Value
|
Improve this Doc
View Source
g
Declaration
Property Value
|
Improve this Doc
View Source
b
Declaration
Property Value
|
Improve this Doc
View Source
a
Declaration
Property Value
Methods
|
Improve this Doc
View Source
toArray()
Declaration
public toArray(): [r | g | b | a]
Returns
Type |
Description |
[r | g | b | a] |
|
|
Improve this Doc
View Source
toBGRA()
Declaration
Returns
|
Improve this Doc
View Source
toARGB()
Declaration
Returns
|
Improve this Doc
View Source
toInt()
Declaration
Returns
|
Improve this Doc
View Source
toString()
Declaration
public toString(): string
Returns