参考 model()

model()

Draws a p5.Geometry object to the canvas.

The parameter, model, is the p5.Geometry object to draw. p5.Geometry objects can be built with buildGeometry(), or beginGeometry() and endGeometry(). They can also be loaded from a file with loadGeometry().

Note: model() can only be used in WebGL mode.

示例

语法

model(model)

参数

model
p5.Geometry:

3D shape to be drawn.

This page is generated from the comments in src/webgl/loading.js . Please feel free to edit it and submit a pull request!

相关参考