fill()

Color / Setting

Description

Sets the color used to fill shapes.

Syntax

void fill(float gray) void fill(float gray, float a) void fill(float r, float g, float b) void fill(float r, float g, float b, float a) void fill(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...