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の値 |
| detailX | x方向の細分割数 | | ○ | 1 |
| detailY | y方向の細分割数 | | ○ | 1 |
戻値
なし
備考
関連