Browse Source

Fixed a typo in Colour.

tags/2021-05-28
jules 12 years ago
parent
commit
fbaf80ced4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_graphics/colour/juce_Colour.cpp

+ 3
- 3
modules/juce_graphics/colour/juce_Colour.cpp View File

@@ -380,9 +380,9 @@ Colour Colour::greyLevel (const float brightness) noexcept
//==============================================================================
Colour Colour::contrasting (const float amount) const noexcept
{
return overlaidWith (getPerceivedBrightness() >= 0.5f
? Colours::black
: Colours::white).withAlpha (amount);
return overlaidWith ((getPerceivedBrightness() >= 0.5f
? Colours::black
: Colours::white).withAlpha (amount));
}
Colour Colour::contrasting (Colour target, float minContrast) const noexcept


Loading…
Cancel
Save