endShape

概要

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

[p5.js] endShape

サンプル

def setup
  background(220)
  noFill

  beginShape
  vertex(20, 20)
  vertex(45, 20)
  vertex(45, 80)
  endShape(CLOSE)

  beginShape
  vertex(50, 20)
  vertex(75, 20)
  vertex(75, 80)
  endShape
end

構文

戻値