Color
Creates a new color, used for UI & Bricks. This is a function.
Example
Inherited from Dynamic Set
Constructors
Color.new( number red = 0, number green = 0, number blue = 0 ) |
Creates a Color with the given red, green, and blue components. The parameters for this function should be on the range [0, 255]. |
Color.fromHex ( string hex ) |
Returns a new Color from a six- or three-character hexadecimal format. A preceding octothorpe (#) is ignored, if present. This function interprets the given string as a typical web hex color in the format RRGGBB or RGB (shorthand for RRGGBB). For example, #FFAA00 produces an orange color, and is the same as #FA0. The color returned can be converted back into hex using |
Functions
string Color:ToHex ( ) |
Converts the color to a six-character hexadecimal string representing the color in the format RRGGBB. It is not prefixed with an octothorpe (#), although this can be concatenated easily. The returned string can be provided to |
Properties
number Color.R |
The red value of the color. |
number Color.G |
The green value of the color. |
number Color.B |
The blue value of the color. |
Last updated