color.lighten(amount)

Add white and return a lightened color.
译:对颜色添加白色并减淡。

Arguments(参数)

amount — 数字,0到100,默认是10。

# Create a new color, lighten it 
blue = new Color("#28affa").lighten(20)

layerA = new Layer
    backgroundColor: blue

results matching ""

    No results matching ""