plane

def setup
  createCanvas(100, 100, WEBGL)
end

def draw
  background(200)
  plane(50, 50)
end

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

[p5.js] plane

概要

平面を描画します。

書式

plane([width] [, height] [, detailX] [, detailY])

引数

引数名内容備考オプションデフォルト値
width平面の幅50
height平面の高さwidthの値
detailXx方向の細分割数1
detailYy方向の細分割数1

戻値

なし

備考

関連