color.desaturate(amount)

Decrease the saturation of a color.
译:减小颜色的饱和度。

Arguments(参数)

amount — A number, from 0 to 100. Set to 10 by default.
译:量 —— 一个数字,从0到100。默认设置为10。

# Create a new Color, desaturate it 
blue = new Color("#28affa").desaturate(25)

layerA = new Layer
    backgroundColor: blue

results matching ""

    No results matching ""