# Color3

class `cee.``Color3`()

  An immutable three component (RGB) color.

  The color components (r,g,b) are in the range 0..1.

  Note that this class is immutable.

Constructors

- `constructor`

Properties

- `b`
- `g`
- `r`

Methods

- `equals`
- `from`
- `fromArray`
- `fromColor4`

## Constructors

`Color3.``constructor`(r, g, b)

  Arguments: | r (`number`) – None g (`number`) – None b (`number`) – None

  Creates a color object.

  Return type: | Color3

## Properties

`Color3.``b`

  Type: | number

  The blue component of the color. Range: 0..1

`Color3.``g`

  Type: | number

  The green component of the color. Range: 0..1

`Color3.``r`

  Type: | number

  The red component of the color. Range: 0..1

## Methods

### equals

`Color3.``equals`(other)

  Arguments: | other (`Color3Like`) – None

  Returns true if the colors are equal.

  Return type: | boolean

### static from

`Color3.``from`(color)

  Arguments: | color (`Color3Like`) – None

  Creates a Color3 instance from any object with r,g,b properties

  Return type: | Color3

### static fromArray

`Color3.``fromArray`(arr)

  Arguments: | arr (`ArrayLike`) – None

  Creates a new Color3 instance from the first 3 elements of the given array.

  Return type: | Color3

### static fromColor4

`Color3.``fromColor4`(color)

  Arguments: | color (`Color4Like`) – None

  Creates a Color3 instance from the r,g,b properties of the given RGBA color, ignoring the alpha channel

  Return type: | Color3

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Web in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Web?
What are the latest release notes for HOOPS Envision for Web?
How do I start evaluating HOOPS Envision for Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...