Skip to content

Commit

Permalink
add line() WEBGL example
Browse files Browse the repository at this point in the history
  • Loading branch information
wong-justin committed Jun 5, 2023
1 parent 84985f3 commit f1a00c6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/core/shape/2d_primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,17 @@ p5.prototype._renderEllipse = function(x, y, w, h, detailX) {
* </code>
* </div>
*
* <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);
* 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 f1a00c6

Please sign in to comment.