# RGBColor

class RGBColor

  Public Functions

  float Distance(RGBColor const &other_color) const
  inline HPS_INLINE bool Equals (RGBColor const &c, int in_tolerance=32) const
  inline HPS_INLINE float Gray () const
  inline HPS_INLINE bool IsGray () const
  inline HPS_INLINE bool IsValid () const
  inline HPS_INLINE bool operator!= (RGBColor const &c) const
  inline HPS_INLINE RGBColor const operator* (float s) const
  inline HPS_INLINE RGBColor const operator* (RGBColor const &c) const
  inline HPS_INLINE RGBColor & operator*= (float s)
  inline HPS_INLINE RGBColor & operator*= (RGBColor const &c)
  inline HPS_INLINE RGBColor const operator+ (float s) const
  inline HPS_INLINE RGBColor const operator+ (RGBColor const &c) const
  inline HPS_INLINE RGBColor & operator+= (float s)
  inline HPS_INLINE RGBColor & operator+= (RGBColor const &c)
  inline HPS_INLINE RGBColor const operator- (float s) const
  inline HPS_INLINE RGBColor const operator- (RGBColor const &c) const
  inline HPS_INLINE RGBColor & operator-= (float s)
  inline HPS_INLINE RGBColor & operator-= (RGBColor const &c)
  inline HPS_INLINE RGBColor const operator/ (float s) const
  inline HPS_INLINE RGBColor & operator/= (float s)
  inline HPS_INLINE bool operator== (RGBColor const &c) const
  inline HPS_INLINE RGBColor()
  inline explicit HPS_INLINE RGBColor(float gray)
  inline HPS_INLINE RGBColor(float r, float g, float b)
  explicit HPS_INLINE RGBColor(RGB24Color const &c24)
  explicit HPS_INLINE RGBColor(RGBA32Color const &c32)
  explicit HPS_INLINE RGBColor(RGBAColor const &c)
  explicit HPS_INLINE RGBColor(RGBAS32Color const &c32)
  void ShowHIC(float &out_hue, float &out_intensity, float &out_chromaticity) const
  void ShowHLS(float &out_hue, float &out_lightness, float &out_saturation) const
  void ShowHSV(float &out_hue, float &out_saturation, float &out_value) const

  Public Members

  float blue
  float green
  float red

  Public Static Functions

  static inline HPS_INLINE RGBColor Black ()
  static RGBColor HIC(float in_hue, float in_intensity, float in_chromaticity)
  static RGBColor HLS(float in_hue, float in_lightness, float in_saturation)
  static RGBColor HSV(float in_hue, float in_saturation, float in_value)
  static inline HPS_INLINE RGBColor Invalid ()
  static inline HPS_INLINE RGBColor White ()

Hello I'm HOOPSY!

HOOPSY BETA

Hello I am HOOPSY! your Docs generative AI assistant.

Ask me anything about HOOPS Visualize HPS or choose a sample question below to start a conversation:

Additional info

HOOPSY may store chats to provide and maintain the service according to OpenAI's data policy.

This feature is currently experimental. While we are continually enhancing its performance and quality, the underlying AI model may generate inaccurate or fabricated responses, especially if prompted to do so.

New Conversation
Continue generating