We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e14c6ef commit bebb83bCopy full SHA for bebb83b
1 file changed
src/gameobjects/Graphics.js
@@ -194,24 +194,6 @@ Phaser.Graphics.prototype.destroy = function(destroyChildren) {
194
195
};
196
197
-/*
198
-* Draws a {Phaser.Polygon} or a {PIXI.Polygon} filled
199
-*
200
-* @method Phaser.Graphics.prototype.drawPolygon
201
-*/
202
-Phaser.Graphics.prototype.drawPolygon = function (poly) {
203
-
204
- this.moveTo(poly.points[0].x, poly.points[0].y);
205
206
- for (var i = 1; i < poly.points.length; i += 1)
207
- {
208
- this.lineTo(poly.points[i].x, poly.points[i].y);
209
- }
210
211
- this.lineTo(poly.points[0].x, poly.points[0].y);
212
213
-};
214
215
/*
216
* Draws a single {Phaser.Polygon} triangle from a {Phaser.Point} array
217
*
0 commit comments