Creates a new Color3 object from red, green, blue values, all between 0 and 1
defines the red component (between 0 and 1, default is 0)
defines the green component (between 0 and 1, default is 0)
defines the blue component (between 0 and 1, default is 0)
Defines the blue component (between 0 and 1, default is 0)
Defines the green component (between 0 and 1, default is 0)
Defines the red component (between 0 and 1, default is 0)
Returns a new array populated with 3 numeric elements : red, green and blue values
the new array
Copy the current object
a new Color3 copied the current one
Updates the Color3 from the sparsely populated value.
The sparsely populated value to read from.
Updates the Color3 rgb values from the given floats
defines the red component to read from
defines the green component to read from
defines the blue component to read from
the current Color3 object
Determines equality between Color3 objects
defines the second operand
true if the rgb values are equal to the given ones
Determines equality between the current Color3 object and a set of r,b,g values
defines the red component to check
defines the green component to check
defines the blue component to check
true if the rgb values are equal to the given ones
Returns the string "Color3"
"Color3"
Compute the Color3 hash code
an unique number that can be used to hash Color3 objects
Multiplies in place each rgb value by scale
defines the scaling factor
the updated Color3
Updates the Color3 rgb values from the given floats
defines the red component to read from
defines the green component to read from
defines the blue component to read from
the current Color3 object
Stores in the given array from the given starting index the red, green, blue values as successive elements
defines the array where to store the r,g,b components
defines an optional index in the target array to define where to start storing values
the current Color3 object
Returns a new Color4 object from the current Color3 and the given alpha
defines the alpha component on the new Color4 object (default is 1)
a new Color4 object
Computes a new Color3 converted from the current one to gamma space
a new Color3 object
Compute the Color3 hexadecimal code as a string
a string containing the hexadecimal representation of the Color3 object
Returns a JSON representation of this color. This is necessary due to the way Actors detect changes on components like the actor's transform. They do this by adding properties for observation, and we don't want these properties serialized.
Computes a new Color3 converted from the current one to linear space
a new Color3 object
Returns the luminance value
a float value
Creates a string with the Color3 current values
the string representation of the Color3 object
Returns a Color3 value containing a black color
a new Color3 object
Returns a Color3 value containing a blue color
a new Color3 object
Returns a Color3 value containing a dark gray color
a new Color3 object
Creates a new Vector3 from the starting index of the given array
defines the source array
defines an offset in the source array
a new Color3 object
Creates a new Color3 from the string containing valid hexadecimal values
defines a string containing valid hexadecimal values
a new Color3 object
Creates a new Color3 from integer values (< 256)
defines the red component to read from (value between 0 and 255)
defines the green component to read from (value between 0 and 255)
defines the blue component to read from (value between 0 and 255)
a new Color3 object
Returns a Color3 value containing a gray color
a new Color3 object
Returns a Color3 value containing a green color
a new Color3 object
Creates a new Color3 with values linearly interpolated of "amount" between the start Color3 and the end Color3
defines the start Color3 value
defines the end Color3 value
defines the gradient value between start and end
a new Color3 object
Creates a new Color3 with values linearly interpolated of "amount" between the start Color3 and the end Color3
defines the start value
defines the end value
defines the gradient factor
defines the Color3 object where to store the result
Returns a Color3 value containing a light gray color
a new Color3 object
Returns a Color3 value containing a magenta color
a new Color3 object
Returns a Color3 value containing a purple color
a new Color3 object
Returns a Color3 value containing a random color
a new Color3 object
Returns a Color3 value containing a red color
a new Color3 object
Returns a Color3 value containing a teal color
a new Color3 object
Returns a Color3 value containing a white color
a new Color3 object
Returns a Color3 value containing a yellow color
a new Color3 object
Class used to hold a RBG color