PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

Color3

Color3

Constructors

Color3.new ( )

Creates a Color3 whose values are (0,0,0) [black]

Color3.new ( number r, number g, number b )

Returns a Color3 with the given red, green, and blue values. The numbers can range from 0 to 1.

Color3.fromRGB ( number r, number g, number b )

Creates a Color3 with the given red, green, and blue. The numbers can range from 0 to 255.

Color3.fromHSV ( number h, number s, number v )

Creates a Color3 with the given hue, saturation, and value. The numbers can range from 0 to 1.

Properties

number Color3.r

The red value of the color

number Color3.g

The green value of the color

number Color3.b

The blue value of the color

Functions

Color3 Color3:lerp ( Color3 color, number alpha )

Returns a Color3 interpolated between two Color3 objects. Alpha is a number from 0 to 1.

number, number, number Color3.toHSV ( Color3 color ) [static]

Returns the hue, saturation, and value of a Color3.