Google News
logo
p5.js - Interview Questions
What is the noFill() Function in p5.js?
The noFill() function sets the fill color of a shape as transparent. It must be called before drawing the shape.
 
function draw(){
  // Sets the square to have transparent fill
  noFill();
  square(50, 50, 25);
}
Advertisement