color.gray(amount, alpha)

Generates
译:生成灰度颜色。

Arguments(参数)
  1. amount — A number representing the amount of white.
    译:量 —— 数字,代表变成灰度颜色的程度。

  2. alpha — A number representing the alpha. (Optional)
    译:透明度 —— 代表透明度。(可选的)

layer = new Layer
layer.backgroundColor = Color.gray(0.5)

results matching ""

    No results matching ""