- Preparing search index...
- The search index is not available
bge-core
Constructors
constructor
- new Color(r, g, b, a?): Color
-
Parameters
-
r: number
-
g: number
-
b: number
-
Optional
a: number
- new Color(value): Color
-
Parameters
-
value: {
a?: number;
b?: number;
g?: number;
r?: number;
}
-
Optional
a?: number
-
Optional
b?: number
-
Optional
g?: number
-
Optional
r?: number
Properties
Static
Readonly
TRANSPARENT
Accessors
encoded
- get encoded(): {
b: number;
g: number;
r: number;
}
-
Returns {
b: number;
g: number;
r: number;
}
-
b: number
-
g: number
-
r: number
hsv
- get hsv(): [h: number, s: number, v: number]
-
Returns [h: number, s: number, v: number]
Methods
Static
fromHsv
- fromHsv(h, s, v): Color
-
Parameters
-
h: number
-
s: number
-
v: number