noFill()

Category:Drawing

Disables the fill inside shapes. Restore the fill by using the fill() command. For shapes, if both noStroke() and noFill() are run, nothing will be drawn to the screen.

Examples

// Turn off the fill and then back on again.
ellipse(100, 100, 200, 200);
noFill();
ellipse(120, 120, 200, 250);
fill("pink");
rect(175, 250, 20, 25);

Syntax

noFill()

Returns

No return value. Changes future output to the display only.

Found a bug in the documentation? Let us know at documentation@code.org