Add link to wikipedia and graphic representation of HSL colorspace

Nick Benik
2018-12-21 10:45:59 -05:00
parent 99b803a354
commit 8ee95197b3

@@ -1,4 +1,7 @@
HslColor represents a color object that is represented by Hue, Saturation, Lightness component values. The primary use of this class is for easy definitions of color.
HslColor represents a color object that is represented by Hue, Saturation, Lightness component values. The primary use of this class is for easy definitions of color. See [Wikipedia article on HSL color space](https://en.wikipedia.org/wiki/HSL_and_HSV)
![Visual representation of HSL color space](https://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/HSL_color_solid_cylinder_saturation_gray.png/320px-HSL_color_solid_cylinder_saturation_gray.png)
## Properties
There are three properties that represent the component values Hue, Saturation, and Lightness. The values range from 0.0f to 1.0f.
@@ -9,6 +12,7 @@ float H;
float S;
float L;
```
## Constructors
### HslColor(float h, float s, float l) :