Skip to content

Color3

[!NOTE] There will be more things (methods, constructors, properties, etc.) in the future. This is based on leaks.

Summary

Properties Properties of a `Color3`.

  • R: Number
  • G: Number
  • B: Number
Constructors Constructors of a `Color3`.

Properties

R

Number

The red value of the color.


G

Number

The green value of the color.


B

Number

The blue value of the color.


Constructors

new(R: Number, G: Number, B: Number)

Color3

Returns a new Color3 from the given values. Values range from 0 to 1.


fromRGB(R: Number, G: Number, B: Number)

Color3

Returns a new Color3 from the given values. Values range from 0 to 255.


fromHSV(H: Number, S: Number, V: Number)

Color3

Returns a new Color3 from the given values. Values range from 0 to 1.


fromHex(hex: String)

Color3

Returns a new Color3 from the given hexadecimal color value.