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

@ -9,6 +9,7 @@ int main(int argc, char** argv)
window.SetMouseCursorGrabbed(true);
SDL_Event event;
float t = 0.f;
while (window.IsOpen())
{
while (window.PollEvent(&event))
@ -21,9 +22,10 @@ int main(int argc, char** argv)
}
}
window.Clear(sdlu::Color::Magenta);
window.Clear(sdlu::Color::FromHSV(floor(t), 100, 100));
window.Display();
t += 0.01;
}
SDL_Quit();