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

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

[p5.js] noFill

概要

図形や文字を塗りつぶさないようにします。

書式

noFill

引数

なし

戻値

なし

備考

関連