MCPcopy Index your code
hub / github.com/processing/p5.js / _assert3d

Method _assert3d

src/core/p5.Graphics.js:548–553  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

546 }
547
548 _assert3d(name) {
549 if (!this._renderer.isP3D)
550 throw new Error(
551 `${name}() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see https://p5js.org/examples/form-3d-primitives.html for more information.`
552 );
553 };
554
555 _initializeInstanceVariables() {
556 this._accessibleOutputs = {

Callers 9

renderingFunction · 0.80
transformFunction · 0.80
materialFunction · 0.80
loadingFunction · 0.80
cameraFunction · 0.80
lightFunction · 0.80
interactionFunction · 0.80
primitives3DFunction · 0.80
vertexFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected