Color
Represents a RGBA color (Red, Green, Blue, Alpha)
Constructors
Creates a Color with given red, green, blue and (optional) alpha values.
Parameters can be between 0.0 and 1.0 or between 0 and 255.
local red = Color(255, 0, 0) local alsoRed = Color(1.0, 0.0, 0.0) local semiTransparentRed = Color(1.0, 0.0, 0.0, 0.5)
Functions
Returns the clear color (R:0, G:0, B:0, A:0). This is a property of the global table, and should be called as Color.Clear.
Sets this Color to the linear interpolation between two given Color at a given ratio.
Sets this Color's components to the given values.
Properties
Shortcut to Color.Saturation.
Color's HSV saturation component. Value range from 0.0 to 1.0.