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平面の幅(未詳)
height平面の高さ(未詳)
detailXx方向の細分割数(未詳)
detailYy方向の細分割数(未詳)

戻値

なし

備考

関連