noFill

概要

p5.jsリファレンス(参考情報)

[p5.js] noFill

サンプル

def setup
  background(220)
  rect(15, 10, 55, 55)
  noFill
  rect(20, 20, 60, 60)
end
def setup
  createCanvas(100, 100, WEBGL)
end

def draw
  background(0)
  noFill
  stroke(240, 240, 100)
  rotateX(frameCount * 0.02)
  rotateY(frameCount * 0.02)
  box(45, 45, 45)
end

構文

戻値