0

In c#, you can get the HSL brightness of a color by doing Color.GetBrightness(). If I want to increase the brightness of a color by a certain percentage, I cannot simply multiply the individual RGB values by that amount. It seems HSL doesn't work like that. How would I do it?

Mantis Toboggan
  • 7,295
  • 3
  • 19
  • 11
  • possible duplicate of [How do I adjust the brightness of a color?](http://stackoverflow.com/questions/737217/how-do-i-adjust-the-brightness-of-a-color) – kͩeͣmͮpͥ ͩ Mar 30 '11 at 09:25

1 Answers1

2

I think this article can help you with this and all other color related questions. It has C# source for all conversions and modifications.

RGB and HSL Colour Space Conversions

01F0
  • 1,228
  • 2
  • 19
  • 32
mmix
  • 6,057
  • 3
  • 39
  • 65