Creates a new Color4 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 alpha component (between 0 and 1, default is 1)
Defines the alpha component (between 0 and 1, default is 1)
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)
Creates a new array populated with 4 numeric elements : red, green, blue, alpha values
the new array
Creates a new Color4 copied from the current one
a new Color4 object
Updates the Color4 from the sparsely populated value.
The sparsely populated value to read from.
Copies the given float values into the current one
defines the red component to read from
defines the green component to read from
defines the blue component to read from
defines the alpha component to read from
the current updated Color4 object
Returns the string "Color4"
"Color4"
Compute the Color4 hash code
an unique number that can be used to hash Color4 objects
Creates a new Color4 with the current Color4 values multiplied by scale
defines the scaling factor to apply
a new Color4 object
Copies the given float values into the current one
defines the red component to read from
defines the green component to read from
defines the blue component to read from
defines the alpha component to read from
the current updated Color4 object
Stores from the starting index in the given array the Color4 successive values
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 Color4 object
Computes a new Color4 converted from the current one to gamma space
a new Color4 object
Compute the Color4 hexadecimal code as a string
a string containing the hexadecimal representation of the Color4 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 Color4 converted from the current one to linear space
a new Color4 object
Creates a string with the Color4 current values
the string representation of the Color4 object
Check the content of a given array and convert it to an array containing RGBA data If the original array was already containing count * 4 values then it is returned directly
defines the array to check
defines the number of RGBA data to expect
an array containing count * 4 values (RGBA)
Creates a new Color4 from the starting index element of the given array
defines the source array to read from
defines the offset in the source array
a new Color4 object
Creates a new Color4 from the string containing valid hexadecimal values
defines a string containing valid hexadecimal values
a new Color4 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)
defines the alpha component to read from (value between 0 and 255)
a new Color3 object
Creates a new Color4 object set with the linearly interpolated values of "amount" between the left Color4 object and the right Color4 object
defines the start value
defines the end value
defines the gradient factor
a new Color4 object
Set the given "result" with the linearly interpolated values of "amount" between the left Color4 object and the right Color4 object
defines the start value
defines the end value
defines the gradient factor
defines the Color4 object where to store data
Class used to hold a RBGA color