Skip to content

Commit

Permalink
add webgl example using detail param for arc()
Browse files Browse the repository at this point in the history
  • Loading branch information
wong-justin committed Jun 5, 2023
1 parent eed99e6 commit 9dbe1c2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core/shape/2d_primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,15 @@ p5.prototype._normalizeArcAngles = (
* </code>
* </div>
*
* <div>
* <code>
* createCanvas(100, 100, WEBGL);
* arc(0, 0, 80, 80, 0, PI + QUARTER_PI, PIE, 7);
* describe(
* 'ellipse with a quarter missing, and the outline is segmented instead of curved'
* );
* </code>
* </div>
*/
p5.prototype.arc = function(x, y, w, h, start, stop, mode, detail) {
p5._validateParameters('arc', arguments);
Expand Down

0 comments on commit 9dbe1c2

Please sign in to comment.