reuk
4 years ago
No known key found for this signature in database
GPG Key ID: 9ADCD339CFC98A11
1 changed files with
2 additions and
2 deletions
-
modules/juce_graphics/colour/juce_Colour.cpp
|
|
|
@@ -82,12 +82,12 @@ namespace ColourHelpers |
|
|
|
|
|
|
|
lightness = ((float) (hi + lo) / 2.0f) / 255.0f;
|
|
|
|
|
|
|
|
if (lightness < 0.0f)
|
|
|
|
if (lightness <= 0.0f)
|
|
|
|
return;
|
|
|
|
|
|
|
|
hue = getHue (col);
|
|
|
|
|
|
|
|
if (1.0f < lightness)
|
|
|
|
if (1.0f <= lightness)
|
|
|
|
return;
|
|
|
|
|
|
|
|
auto denominator = 1.0f - std::abs ((2.0f * lightness) - 1.0f);
|
|
|
|
|