stroke()

Color / Setting

Description

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

NameTypeDescription
grayfloatgrayscale value
rfloatred component
gfloatgreen component
bfloatblue component
afloatalpha (optional)
ccolora color value

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...