R0bl0x10501050 / ColorPlus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ColorPlus

ColorPlus.Add(color1: Color3, color2: Color3)

Adds two Color3 values
color1 - Color3 of the first color
color2 - Color3 of the second color

ColorPlus.Subtract(color1: Color3, color2: Color3)

Subtracts two Color3 values
color1 - Color3 of the first color
color2 - Color3 of the second color

ColorPlus.Multiply(color1: Color3, color2: Color3)

Multiplies two Color3 values
color1 - Color3 of the first color
color2 - Color3 of the second color

ColorPlus.Divide(color1: Color3, color2: Color3)

Divides two Color3 values
color1 - Color3 of the first color
color2 - Color3 of the second color

ColorPlus.Pow(color1: Color3, color2: Color3)

Returns the first Color3 to the power tof the second Color3. Use case? I have no idea.
color1 - Color3 of the first color
color2 - Color3 of the second color

ColorPlus.ToBW(color: Color3)

Converts the Color3 to grayscale
color1 - Color3 of the first color

ColorPlus.HexToRGB(hex: string)

Converts a hexadecimal (hex code) to Color3
hex - The hex string

ColorPlus.RGBToHex(color: Color3)

Converts a Color3 to hexadecimal (hex code)
color - The RGB color

ColorPlus.Invert(color: Color3, bw: boolean)

Inverts the color and optioinally converts the inverted color to grayscale
color - Color3 to invert
bw - Whether to convert to grayscale or not

About

License:MIT License


Languages

Language:Lua 100.0%