Color3
- class cee.Color3()
An immutable three component (RGB) color.
The color components (r,g,b) are in the range 0..1.
Note that this class is immutable.
Constructors
Methods
Constructors
constructor
- cee.Color3.constructor(r, g, b)
Creates a color object.
- Arguments
r (
number
) –g (
number
) –b (
number
) –
- Return type
cee.Color3
Properties
- cee.Color3.b
The blue component of the color. Range: 0..1
- cee.Color3.g
The green component of the color. Range: 0..1
- cee.Color3.r
The red component of the color. Range: 0..1
Methods
equals
- cee.Color3.equals(other)
Returns true if the colors are equal.
- Arguments
other (
cee.Color3Like
) –
- Return type
boolean
from
- cee.Color3.from(color)
Creates a Color3 instance from any object with r,g,b properties
- Arguments
color (
cee.Color3Like
) –
- Return type
cee.Color3
fromArray
- cee.Color3.fromArray(arr)
Creates a new Color3 instance from the first 3 elements of the given array.
- Arguments
arr (
ArrayLike[number]
) –
- Return type
cee.Color3
fromColor4
- cee.Color3.fromColor4(color)
Creates a Color3 instance from the r,g,b properties of the given RGBA color, ignoring the alpha channel
- Arguments
color (
cee.Color4Like
) –
- Return type
cee.Color3