Sets the red component of a color.
The range depends on the colorMode(). In the default RGB mode it's between 0 and 255.
Ejemplos
Sintaxis
setRed(red)
Parámetros
red
Number:
the new red value.
This page is generated from the comments in src/color/p5.Color.js . Please feel free to edit it and submit a pull request!