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
  • 6,505
  • 3
  • 18
  • 10
  • 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,214
  • 2
  • 22
  • 30
mmix
  • 5,739
  • 2
  • 36
  • 62