Skip to content

Commit 71d6f8a

Browse files
committed
Added fillMesh and strokeMesh.
1 parent 28260cc commit 71d6f8a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

v3/src/gameobjects/graphics/Graphics.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,16 @@ var Graphics = new Class({
555555
return mesh;
556556
},
557557

558+
fillMesh: function (mesh)
559+
{
560+
mesh.fill(this);
561+
562+
return this;
563+
},
564+
558565
strokeMesh: function (mesh)
559566
{
560-
mesh.draw(this);
567+
mesh.stroke(this);
561568

562569
return this;
563570
},

0 commit comments

Comments
 (0)