def setup
createCanvas(100, 100, WEBGL)
end
def draw
background(200)
rotateX(frameCount * 0.01)
rotateY(frameCount * 0.01)
box(50)
end
箱を描画します。
| 引数名 | 内容 | 備考 | オプション | デフォルト値 |
|---|---|---|---|---|
| width | 箱の幅 | ○ | 50 | |
| height | 箱の高さ | ○ | widthの値 | |
| depth | 箱の奥行き | ○ | heightの値 | |
| detailX | x方向の細分割数 | ○ | 1 | |
| detailY | y方向の細分割数 | ○ | 1 |
なし