stroke()
Color / SettingDescription
Sets the color used to draw lines and borders around shapes.
Syntax
void stroke(float gray)
void stroke(float gray, float a)
void stroke(float r, float g, float b)
void stroke(float r, float g, float b, float a)
void stroke(color c)
Parameters
| Name | Type | Description |
|---|---|---|
| gray | float | grayscale value |
| r | float | red component |
| g | float | green component |
| b | float | blue component |
| a | float | alpha (optional) |
| c | color | a color value |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...