fill() - Version: 110

Description

Sets the color used to fill shapes. For example, if you run fill(204, 102, 0), all subsequent shapes will be filled with orange.

The value for the parameter “gray” must be less than or equal to 255.

Syntax


fill(gray)


fill(value1, value2, value3)


Parameters

gray – number specifying value between white and black

value1 – red value

value2 – green value

value3 – blue value

Returns

none

Related
noFill()
stroke()
background()




Edit History