nofill()

Description

Disables filling geometry. If both noStroke() is called, nothing will be drawn inside the shape.

Syntax


noFill()


Parameters

none

Returns

none

Related

fill()

Example

void setup()
{
background(0,0,0);// set the screen black
noFill();
}

void loop()
{
gettouch(); //stores mouse coordinates in mouseX and mouseY
rect(mouseX, mouseY, 20,20); //draw a rectangle at point (40,40), width = 40, height = 40
delay(20); //delay 1 second
}




Edit History