📜  LESS-色彩混合功能

📅  最后修改于: 2020-10-22 07:16:00             🧑  作者: Mango


 

在本章中,我们将了解LESS中的颜色混合功能。这些是在Photoshop,Fireworks或GIMP等图像编辑器中使用的类似操作,它们会将CSS颜色与图像相匹配。

下表显示了LESS中使用的颜色混合功能。

Sr.No. Functions & Description
1 multiply

It multiplies two colors and returns a resultant color.

2 screen

It takes two colors and returns a brighter color. It works opposite of multiply function.

3 overlay

It generates result by combining the effect of multiply and screen.

4 softlight

It works similar to overlay but it uses only a part of the color, which soft-highlights the other color.

5 hardlight

It works similar to overlay but the role of the colors reversed.

6 difference

It subtracts the second input color from the first input color.

7 exclusion

It works similar to difference function but with lower contrast.

8 average

It computes the average of two input colors on a per-channel (RGB) basis.

9 negation

It works opposite to difference function, which subtracts first color from second color.