Static p5_sys::global::noStroke[][src]

pub static noStroke: NoStrokeInternalType
Expand description

Disables drawing the stroke (outline). If both noStroke() and noFill() are called, nothing will be drawn to the screen.

Examples

noStroke();
rect(20, 20, 60, 60);
function setup() {
  createCanvas(100, 100, WEBGL);
}

function draw() {
  background(0);
  noStroke();
  fill(240, 150, 150);
  rotateX(frameCount * 0.01);
  rotateY(frameCount * 0.01);
  box(45, 45, 45);
}