开发者

Dynamically change a specific color [duplicate]

This question already has answers here: Closed 11 years ago.

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...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜