Dynamically change a specific color [duplicate]
Possible Duplicate:
How can I generate m开发者_如何学Pythonultiple shades from a given base color?
How can change a color and make it more dark or brighter? I am using Delphi 2007.
You can use a unit like this one: http://www.delphipraxis.net/157099-fast-integer-rgb-hsl.html
HSL stands for:
- Hue
- Saturation
- Luminance
So, if you change the luminance... you can get a darker or brighter color...
精彩评论