API reference
API reference
Select your platform
No SDKs available
No versions available

Color3

Color3

class Color3
Color3 is a class that represents a color in RGB space. It has three properties: red, green, and blue. These properties are floats that range from 0 to 1.

Constructors

NameSummary
Color3
constructor(red: Float = 0.0f, green: Float = 0.0f, blue: Float = 0.0f)constructor()
Creates a new Color3 object with default values of 0 for each property.

Properties

NameSummary
blue
var blue: Float
The blue component of the color, as a float between 0 and 1.
green
var green: Float
The green component of the color, as a float between 0 and 1.
red
var red: Float
The red component of the color, as a float between 0 and 1.

Functions

NameSummary
equals
open operator override fun equals(other: Any?): Boolean
hashCode
open override fun hashCode(): Int
Did you find this page helpful?
Thumbs up icon
Thumbs down icon