参考 setRed()

setRed()

设置颜色的红色值。

范围取决于 colorMode()。在默认的 RGB 模式下,它的值介于 0 到 255 之间。

示例

语法

setRed(red)

参数

red
数字:

新的红色值


相关参考