Google News
logo
p5.js - Interview Questions
What is the noStroke() Function in p5.js?
The noStroke() function disables the stroke of a shape. It must be called before drawing the shape.
 
function draw(){
  // Draws a circle with blue fill color and no stroke/outline
  noStroke();
  fill(0, 0, 255);
  circle(50, 50, 25);
}
Advertisement