# cee::Color3f

class `Color3f`

  Class for storing an RGB color triplet.

  Each color component is floating point value in the interval [0.0, 1.0].

  Public Functions

  `Color3f`()

    Constructs a default color object.

    Initializes all color components to 0.0.

  `Color3f`(const Color3f &other)

    Constructs a color as a copy of other.

  `Color3f`(float r, float g, float b)

    Constructs a color using the color components r, g, b.

  Color3f &`operator=`(const Color3f &rhs)

    Assigns rhs to this color and returns a reference to this color.

  bool `operator==`(const Color3f &rhs) const

    Returns true if rhs is equal to this color; otherwise returns false.

  bool `operator!=`(const Color3f &rhs) const

    Returns true if rhs is not equal to this color; otherwise returns false.

  const float &`r`() const

    Red color component.

    Used for setting or getting the red color component of the color, e.g.

        color.r = 0.5f;
        float red = color.r;

  const float &`g`() const

    Green color component.

    Used for setting or getting the green color component of the color, e.g.

        color.g = 0.5f;
        float green = color.g;

  const float &`b`() const

    Blue color component.

    Used for setting or getting the blue color component of the color, e.g.

        color.b = 0.5f;
        float blue = color.b;

  float &`r`()

    Red color component.

    Used for setting or getting the red color component of the color, e.g.

        color.r = 0.5f;
        float red = color.r;

  float &`g`()

    Green color component.

    Used for setting or getting the green color component of the color, e.g.

        color.g = 0.5f;
        float green = color.g;

  float &`b`()

    Green color component.

    Used for setting or getting the green color component of the color, e.g.

        color.g = 0.5f;
        float green = color.g;

  bool `isValid`() const

    Returns true if the color is valid (all components in the range 0.0 -> 1.0)

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, 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...