Referencia setGreen()

setGreen()

Sets the green component of a color.

The range depends on the colorMode(). In the default RGB mode it's between 0 and 255.

Ejemplos

Sintaxis

setGreen(green)

Parámetros

green
Number:

the new green value.

Notice any errors or typos? Please let us know. Please feel free to edit src/color/p5.Color.js and open a pull request!

Referencias Relacionadas