Skip to content

Commit

Permalink
Merge pull request #2534 from Spongman/patch-2 resize 3D primitive ex…
Browse files Browse the repository at this point in the history
…amples

resize 3d Primitive examples to display within small canvas better
  • Loading branch information
stalgiag authored Jan 11, 2018
2 parents c52375f + 944460a commit 30c4607
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/webgl/primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ p5.prototype.plane = function(width, height, detailX, detailY) {
* background(200);
* rotateX(frameCount * 0.01);
* rotateY(frameCount * 0.01);
* box(200, 200, 200);
* box(50);
* }
* </code>
* </div>
Expand Down Expand Up @@ -227,7 +227,7 @@ p5.prototype.box = function(width, height, depth, detailX, detailY) {
*
* function draw() {
* background(200);
* sphere(50);
* sphere(40);
* }
* </code>
* </div>
Expand Down Expand Up @@ -395,7 +395,7 @@ var _truncatedCone = function(
* background(200);
* rotateX(frameCount * 0.01);
* rotateZ(frameCount * 0.01);
* cylinder(200, 200);
* cylinder(20, 50);
* }
* </code>
* </div>
Expand Down Expand Up @@ -469,7 +469,7 @@ p5.prototype.cylinder = function(radius, height, detailX, detailY) {
* background(200);
* rotateX(frameCount * 0.01);
* rotateZ(frameCount * 0.01);
* cone(200, 200);
* cone(40, 70);
* }
* </code>
* </div>
Expand Down Expand Up @@ -653,7 +653,7 @@ p5.prototype.ellipsoid = function(radiusX, radiusY, radiusZ, detailX, detailY) {
* background(200);
* rotateX(frameCount * 0.01);
* rotateY(frameCount * 0.01);
* torus(200, 60);
* torus(50, 15);
* }
* </code>
* </div>
Expand Down

0 comments on commit 30c4607

Please sign in to comment.