Creates a new Color3 object from red, green, blue values, all between 0 and 1
Optional
r: numberdefines the red component (between 0 and 1, default is 0)
Optional
g: numberdefines the green component (between 0 and 1, default is 0)
Optional
b: numberdefines 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)
Static
BlackClamps the rgb values by the min and max values and stores the result into "result"
the original Color3
defines minimum clamping value (default is 0)
defines maximum clamping value (default is 1)
defines color to store the result into
Updates the Color3 rgb values from the given floats
the current Color3 object
defines the red component to read from
defines the green component to read from
defines the blue component to read from
Determines equality between the current Color3 object and a set of r,b,g values
true if the rgb values are equal to the given ones
defines the red component to check
defines the green component to check
defines the blue component to check
Update the current color with values stored in an array from the starting index of the given array
the current Color3 object
defines the source array
Optional
offset: numberdefines an offset in the source array
Updates the Color3 rgb values from the given floats
the current Color3 object
defines the red component to read from
defines the green component to read from
defines the blue component to read from
Stores in the given array from the given starting index the red, green, blue values as successive elements
the current Color3 object
defines the array where to store the r,g,b components
Optional
index: numberdefines an optional index in the target array to define where to start storing values
Converts the Color3 values to gamma space and stores the result in "convertedColor"
the unmodified Color3
defines the Color3 object where to store the gamma space version
Optional
exact: booleandefines if the conversion will be done in an exact way which is slower but more accurate (default is false)
Converts the Color3 values to linear space and stores the result in "convertedColor"
the unmodified Color3
defines the Color3 object where to store the linear space version
Optional
exact: booleandefines if the conversion will be done in an exact way which is slower but more accurate (default is false)
Static
BlackStatic
BlueStatic
FromCreates a new Color3 from the starting index of the given array
a new Color3 object
defines the source array
Optional
offset: numberdefines an offset in the source array
Static
FromCreates a new Color3 from the starting index element of the given array
defines the source array to read from
defines the offset in the source array
defines the target Color3 object
Static
FromHSVConverts Hue, saturation and value to a new Color3 (RGB)
a new Color3 object
defines the hue (value between 0 and 360)
defines the saturation (value between 0 and 1)
defines the value (value between 0 and 1)
Static
FromStatic
FromCreates a new Color3 from integer values (< 256)
a new Color3 object
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)
Static
GrayStatic
GreenStatic
HSVtoRGBToConverts Hue, saturation and value to a Color3 (RGB)
defines the hue (value between 0 and 360)
defines the saturation (value between 0 and 1)
defines the value (value between 0 and 1)
defines the Color3 where to store the RGB values
Static
HermiteReturns a new Color3 located for "amount" (float) on the Hermite interpolation spline defined by the vectors "value1", "tangent1", "value2", "tangent2"
the new Color3
defines the first control point
defines the first tangent Color3
defines the second control point
defines the second tangent Color3
defines the amount on the interpolation spline (between 0 and 1)
Static
Hermite1stReturns a new Color3 which is the 1st derivative of the Hermite spline defined by the colors "value1", "value2", "tangent1", "tangent2".
1st derivative
defines the first control point
defines the first tangent
defines the second control point
defines the second tangent
define where the derivative must be done
Static
Hermite1stReturns a new Color3 which is the 1st derivative of the Hermite spline defined by the colors "value1", "value2", "tangent1", "tangent2".
defines the first control point
defines the first tangent
defines the second control point
defines the second tangent
define where the derivative must be done
define where to store the derivative
Static
LerpStatic
LerpStatic
MagentaStatic
PurpleStatic
RandomStatic
RedStatic
TealStatic
WhiteStatic
YellowGenerated using TypeDoc
Class used to hold a RGB color