You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/gameobjects/graphics/Graphics.js
+34-3Lines changed: 34 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1112,7 +1112,7 @@ var Graphics = new Class({
1112
1112
{
1113
1113
endAngle=-PI2-overshoot;
1114
1114
}
1115
-
elseif(endAngle>0)
1115
+
elseif(endAngle>=0)
1116
1116
{
1117
1117
endAngle=-PI2+endAngle%PI2-overshoot;
1118
1118
}
@@ -1159,13 +1159,44 @@ var Graphics = new Class({
1159
1159
* @param {number} radius - The radius of the slice.
1160
1160
* @param {number} startAngle - The start angle of the slice, given in radians.
1161
1161
* @param {number} endAngle - The end angle of the slice, given in radians.
1162
-
* @param {boolean} [anticlockwise=false] - Draw the slice piece anticlockwise or clockwise?
1162
+
* @param {boolean} [anticlockwise=false] - Whether the drawing should be anticlockwise or clockwise.
1163
+
* @param {number} [overshoot=0] - This value allows you to overshoot the endAngle by this amount. Useful if the arc has a thick stroke and needs to overshoot to join-up cleanly.
1163
1164
*
1164
1165
* @return {Phaser.GameObjects.Graphics} This Game Object.
0 commit comments