color()
Color / Creating & ReadingDescription
Creates colors for storing in variables. Respects the current colorMode.
Syntax
color color(float gray)
color color(float gray, float a)
color color(float r, float g, float b)
color color(float r, float g, float b, float a)
Parameters
| Name | Type | Description |
|---|---|---|
| gray | float | grayscale value |
| r | float | red component |
| g | float | green component |
| b | float | blue component |
| a | float | alpha (optional) |
Returns
colorRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...