mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Added fillMesh and strokeMesh.
This commit is contained in:
parent
28260cca66
commit
71d6f8a085
1 changed files with 8 additions and 1 deletions
|
@ -555,9 +555,16 @@ var Graphics = new Class({
|
||||||
return mesh;
|
return mesh;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
fillMesh: function (mesh)
|
||||||
|
{
|
||||||
|
mesh.fill(this);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
},
|
||||||
|
|
||||||
strokeMesh: function (mesh)
|
strokeMesh: function (mesh)
|
||||||
{
|
{
|
||||||
mesh.draw(this);
|
mesh.stroke(this);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue