Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 899 Bytes

File metadata and controls

23 lines (16 loc) · 899 Bytes

Color Component

Badge

The color.hpp header provides two classes for performing color management, interpolation, and conversion - espp::Rgb and espp::Hsv which can be converted between each other. The RGB color space provides support for additive blending (which includes averaging, as opposed to light-model-based mixing) and is therefore suited for producing gradients.

The classes provided are:

  • espp::Rgb
  • espp::Hsv

Please see Computer Graphics and Geometric Modeling: Implementation and Algorithms <https://isidore.co/calibre/browse/book/5588>_, specifically section 8.6 for more information.

Example

The example shows how to use the various classes exposed in the color component to manipulate and convert between color data.