Fixed triangle properties.

This commit is contained in:
Richard Davey 2017-03-30 00:33:53 +01:00
parent a8308698bb
commit 709819d601

View file

@ -199,12 +199,12 @@ var Graphics = new Class({
fillTriangleShape: function (triangle) fillTriangleShape: function (triangle)
{ {
return this.fillTriangle(triangle.x0, triangle.y0, triangle.x1, triangle.y1, triangle.x2, triangle.y2); return this.fillTriangle(triangle.x1, triangle.y1, triangle.x2, triangle.y2, triangle.x3, triangle.y3);
}, },
strokeTriangleShape: function (triangle) strokeTriangleShape: function (triangle)
{ {
return this.strokeTriangle(triangle.x0, triangle.y0, triangle.x1, triangle.y1, triangle.x2, triangle.y2); return this.strokeTriangle(triangle.x1, triangle.y1, triangle.x2, triangle.y2, triangle.x3, triangle.y3);
}, },
fillTriangle: function (x0, y0, x1, y1, x2, y2) fillTriangle: function (x0, y0, x1, y1, x2, y2)