# CDPColor4

## Functions

| `CDPColor4`
| `CDPColor4`
| `CDPColor4`
| `CDPColor4`
CDPColor4 & | `operator=`
const float & | `r`
const float & | `g`
const float & | `b`
const float & | `a`
float & | `r`
float & | `g`
float & | `b`
float & | `a`
void | `set`
void | `setAlpha`

## Detailed Description

class `CDPColor4`

  A simple helper class for colors.

  Public Functions

  inline `CDPColor4`()

    Default constructor.

  inline `CDPColor4`(const CDPColor4 &other)

    Copy constructor.

  inline `CDPColor4`(float r, float g, float b)

    Construction from r, g, b components.

  inline `CDPColor4`(float r, float g, float b, float a)

    Construction from r, g, b, a components.

  inline CDPColor4 &`operator=`(const CDPColor4 &rhs)

    Assignment operator.

  inline const float &`r`() const

    R component of the color.

  inline const float &`g`() const

    G component of the color.

  inline const float &`b`() const

    B component of the color.

  inline const float &`a`() const

    A component of the color.

  inline float &`r`()

    R component of the color.

  inline float &`g`()

    G component of the color.

  inline float &`b`()

    B component of the color.

  inline float &`a`()

    A component of the color.

  inline void `set`(float r, float g, float b, float a = 1.0f)

    Sets r, g, b and a value.

  inline void `setAlpha`(float a)

    Sets a value.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Desktop or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
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...