gpt4 book ai didi

colors - LESS 颜色函数 lighten 和 tint 之间有什么区别?

转载 作者:行者123 更新时间:2023-12-04 10:00:45 28 4
gpt4 key购买 nike

两者 lightentint似乎使颜色变浅(更接近白色)。为什么 LESS 定义了两者?
来自 the LESS documentation :

lighten(@color, 10%); // return a color 10% points *lighter*

tint(@color, 10%); // return a color mixed 10% with white


如何 one site定义 色调 (注意“打火机”一词的使用):

If you tinted a color, you've been adding white to the original color.

A tint is lighter than the original color.

最佳答案

来自 this thread那是在要求 tintthis comment :

Tint/shade is not the same thing as lighten/darken. Tint and shade are effectively mixing with white and black respectively, whereas lighten/darken are manuipulating the luminance channel independently of hue and saturation. The former can produce hue shifts, whereas the latter does not. That's not to say it's not useful, just that it's not the same thing. Mathematically it's that linear changes in RGB space do not necessarily correspond with linear changes in HSL space, though in practice they will produce fairly similar results.



两者背后的数学略有不同。

关于colors - LESS 颜色函数 lighten 和 tint 之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19455425/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com