BrickColor
Overview
BrickColor is an object used to define and work with color data. It is mainly utilized in rendering or handling specific colors in the user interface.
Constructors
new
Creates a new BrickColor object.
Parameters
string name
The name or ID of the color. Example: "Bright red".
Return
BrickColor
The created BrickColor object.
Code Samples
local BrickColor = BrickColor.new("Bright red")Properties
number
number
This property is the unique identifier number for the color value associated with the BrickColor object. It allows for easy reference during the creation of colors.
Code Samples
r
number
This property is the Red (R) component value of the current BrickColor. The value is a floating-point number between 0 and 1.
Code Samples
g
number
This property is the Green (G) component value of the current BrickColor. The value is a floating-point number between 0 and 1.
Code Samples
b
number
This property is the Blue (B) component value of the current BrickColor. The value is a floating-point number between 0 and 1.
Code Samples
Name
string
Represents the name of the color that corresponds to the BrickColor. It is returned as a string value.
Code Samples
Color
Color3
Represents the BrickColor to a corresponding Color3 object.
Code Samples
Methods
Last updated