mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Fixed triangle properties.
This commit is contained in:
parent
a8308698bb
commit
709819d601
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue