Skip to content

Commit

Permalink
style line() 3d example as xyz gizmo
Browse files Browse the repository at this point in the history
  • Loading branch information
wong-justin committed Jun 9, 2023
1 parent 346e0a4 commit 30d6fd4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/core/shape/2d_primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,13 @@ p5.prototype._renderEllipse = function(x, y, w, h, detailX) {
* <div>
* <code>
* createCanvas(100, 100, WEBGL);
* strokeWeight(7);
* line(0, 0, 0, 30, 0, 0);
* line(0, 0, 0, 0, 30, 0);
* line(-30, -30, -30, 30, 30, 30);
* strokeWeight(4);
* stroke('red');
* line(-30, 0, 0, 30, 0, 0);
* stroke('green');
* line(0, -30, 0, 0, 30, 0);
* stroke('blue');
* line(-30, -30, -30, 15, 15, 30);
* describe('two lines mark the flat x and y axes while a third line spans diagonally through the third dimension');
* </code>
* </div>
Expand Down

0 comments on commit 30d6fd4

Please sign in to comment.