How can I generate multiple shades from a given base color?

前端 未结 3 1705
遥遥无期
遥遥无期 2020-12-28 08:49

I\'d like design a chart and set the colors from a single exemplar. Same way as in Excel\'s:

\"alt

3条回答
  •  被撕碎了的回忆
    2020-12-28 09:02

    Look into the HSV colour space. Using it you can produce different shades or tints starting from a given colour. There is a page with Pascal / Delphi code for conversion between RGB and HSV at efg's Computer Lab.

提交回复
热议问题