Skip to content

Commit

Permalink
Merge pull request #7298 from shibomb/fix/fix-createModel-example
Browse files Browse the repository at this point in the history
Fix example of createModel function.
  • Loading branch information
davepagurek authored Oct 8, 2024
2 parents 7d393ec + 5863122 commit 71b793f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/webgl/loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -1176,15 +1176,14 @@ p5.prototype.model = function(model) {
* f 6 5 4
* f 6 4 3
* f 6 3 2
* f 6 2 1
* f 6 1 5
* f 6 2 5
* `;
* //draw a spinning octahedron
* let octahedron;
*
* function setup() {
* createCanvas(100, 100, WEBGL);
* octahedron = createModel(octahedron_model);
* octahedron = createModel(octahedron_model, '.obj');
* describe('Vertically rotating 3D octahedron.');
* }
*
Expand Down

0 comments on commit 71b793f

Please sign in to comment.