private void _UpdateImage()
{
double hue = _hueValue;
double saturation = 0f;
double luminosity = 1f;
for (int i = 0; i < _image.width; i++)
{
saturation = ((float)i / _image.width);
for (int k = 0; k < _image.height; k++)
{
luminosity = (float)k / _image.height;
// HSL to RGB convertion.
Color pixelColor = GetColorFromHSL(hue, saturation, luminosity);
_image.SetPixel(i, k, pixelColor.ToUColor());
}
_image.Apply();
}
}