Added support for HSV color space

This commit is contained in:
Robert 2020-05-17 12:25:09 +02:00
parent 05f52a5b79
commit 0c81a94a37
3 changed files with 60 additions and 1 deletions

View file

@ -53,6 +53,13 @@ namespace sdlu
*/
Uint32 ToInt();
/**
* @brief Generate color from HSV values
*
* @return An RGBA Color object generated from HSV
*/
static Color& FromHSV(Uint16 h, Uint8 s, Uint8 v);
/////////////////// DEFAULT COLORS ///////////////////