color.grayscale()

Return a fully desaturated color.
*译:将一个颜色的饱和度降为0。

# Create a new Color 
yellow = new Color("yellow")

# Convert it to gray 
gray = yellow.grayscale()

layerA = new Layer
    backgroundColor: gray

results matching ""

    No results matching ""