|
MathLib
|
#include <color/Types.hpp>
Public Types | |
| enum | Color { Red , Yellow , Green , Cyan , Blue , Magenta } |
Types | |
| using | value_type = T |
| The type of the underlying implementation for each color. | |
Public Member Functions | |
| constexpr BasicHSL & | operator= (const BasicHSL &other) |
| constexpr enum Color | hueColor () const |
| constexpr bool | isNormalized () const |
Constructors | |
| constexpr | BasicHSL ()=default |
| constexpr | BasicHSL (Math::BasicDegree< value_type > h, value_type s, value_type l) |
| constexpr | BasicHSL (const BasicHSL &other) |
Element Access | |
| constexpr Math::BasicDegree< value_type > | hue () const |
| constexpr value_type | saturation () const |
| constexpr value_type | lightness () const |
| constexpr void | hue (Math::BasicDegree< value_type > input) |
| constexpr void | saturation (value_type input) |
| constexpr void | lightness (value_type input) |
Invalid Value Check | |
| constexpr bool | isNaN () const |
| constexpr bool | isInf () const |
Static Public Member Functions | |
Constants | |
| static constexpr BasicHSL< T > | min () |
| static constexpr BasicHSV< T > | max () |
Protected Member Functions | |
| constexpr bool | _isInBounds (value_type component, value_type lower_bound=0.0, value_type upper_bound=1.0) const |
| constexpr bool | _isInBoundsUpTo (value_type component, value_type lower_bound=0.0, value_type upper_bound=1.0) const |
Protected Attributes | |
| Math::BasicDegree< value_type > | _hue {} |
| value_type | _saturation {} |
| value_type | _lightness {} |
Friends | |
| constexpr bool | approximately_equal_to (const BasicHSL< T > &value_to_test, const BasicHSL< T > &value_it_should_be, T tolerance=T{0.0002}) |
Related Symbols | |
(Note that these are not member symbols.) | |
Global Operators | |
| constexpr BasicHSL< T > | operator+ (const BasicHSL< T > &left, const BasicHSL< T > &right) |
| constexpr BasicHSL< T > | operator- (const BasicHSL< T > &left, const BasicHSL< T > &right) |
The definition of an HSL color
This represents a color as Hue, Saturation, and Lightness.
| using value_type = T |
|
inlineconstexpr |
|
inlineconstexprprotected |
|
inlineconstexprprotected |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
protected |
|
protected |
|
protected |