# Color4

class `cee.``Color4`()

  An immutable four component (RGBA) color.

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

  Note that this class is immutable.

Constructors

- `constructor`

Properties

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

Methods

- `equals`
- `from`

## Constructors

`Color4.``constructor`(r, g, b, a)

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

  Creates a color object

  Return type: | Color4

## Properties

`Color4.``a`

  Type: | number

  The alpha component of the color. Range: 0..1, where 1 is fully opaque and 0 is fully transparent (invisible)

`Color4.``b`

  Type: | number

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

`Color4.``g`

  Type: | number

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

`Color4.``r`

  Type: | number

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

## Methods

### equals

`Color4.``equals`(other)

  Arguments: | other (`Color4Like`) – None

  Returns true if the colors are equal

  Return type: | boolean

### static from

`Color4.``from`(color)

  Arguments: | color (`Color4Like`) – None

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

  Return type: | Color4

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Web 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...