开发者

Dynamically change a specific color [duplicate]

开发者 https://www.devze.com 2023-04-06 08:01 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: How can I generate m开发者_如何学Pythonultiple shades from a given base color?
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

精彩评论

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