Reference setRed()

setRed()

Sets the red component of a color.

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

Examples

Syntax

setRed(red)
setRed(red)
setRed(red)
setRed(red)
setRed(red)

Parameters

red
Number: the new red value.

Related References