Skip to content

Commit 5bea69f

Browse files
authored
Merge pull request #2562 from Spongman/fix-arc-docs
fix `arc` doc parameters to match other 2d primitives
2 parents aea0758 + fd49786 commit 5bea69f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/core/2d_primitives.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var canvas = require('./canvas');
1414
require('./error_helpers');
1515

1616
/**
17-
* Draw an arc to the screen. If called with only a, b, c, d, start, and
17+
* Draw an arc to the screen. If called with only x, y, w, h, start, and
1818
* stop, the arc will be drawn and filled as an open pie segment. If a mode parameter is provided, the arc
1919
* will be filled like an open semi-circle (OPEN) , a closed semi-circle (CHORD), or as a closed pie segment (PIE). The
2020
* origin may be changed with the ellipseMode() function.<br><br>
@@ -25,10 +25,10 @@ require('./error_helpers');
2525
* only to draw parts of an ellipse.
2626
*
2727
* @method arc
28-
* @param {Number} a x-coordinate of the arc's ellipse
29-
* @param {Number} b y-coordinate of the arc's ellipse
30-
* @param {Number} c width of the arc's ellipse by default
31-
* @param {Number} d height of the arc's ellipse by default
28+
* @param {Number} x x-coordinate of the arc's ellipse
29+
* @param {Number} y y-coordinate of the arc's ellipse
30+
* @param {Number} w width of the arc's ellipse by default
31+
* @param {Number} h height of the arc's ellipse by default
3232
* @param {Number} start angle to start the arc, specified in radians
3333
* @param {Number} stop angle to stop the arc, specified in radians
3434
* @param {Constant} [mode] optional parameter to determine the way of drawing

0 commit comments

Comments
 (0)