Data Types
Color3
API Documentation for Color3 datatype.
Constructors
Color3.new(r, g, b, a)
r
, g
and b
must be integers! a
is an optional. An example:
Properties
r
The property r component of the Color3
g
The property g component of the Color3
b
The property b component of the Color3
a
The property a component of the Color3
Methods
FromHex(HexValue)
HexValue must be a string! An example:
Random()
The Random
function takes no parameters and returns a random color. An example:
In this example the color of cube changes twice every 2 seconds.