参考 setRed()

setRed()

设置颜色的红色值。

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

示例

语法

setRed(red)

参数

red
数字:

新的红色值

This page is generated from the comments in src/color/p5.Color.js . Please feel free to edit it and submit a pull request!

相关参考