rezoner / playground

Playground.js is a framework for your javascript based games. It gives you out-of-box access to essentials like mouse, keyboard, sound and well designed architecture that you can expand to your needs.
MIT License
459 stars 50 forks source link

added missing .fill() method; fixed .polygon() method, supporting def… #25

Closed JosePedroDias closed 8 years ago

JosePedroDias commented 8 years ago

added missing .fill() method; fixed .polygon() method, supporting default values of 0 for x and y; fixed .fillPolygon() and .strokePolygon() methods, removing duplicate call to .beginPath().

Sorry if I mangled the whitespace in the file and fixed in the master branch. The thing is polygon is severely borked without these changes. Great work on playgroundjs!

rezoner commented 8 years ago

Merged manually and pushed into new version.

Thanks for contribution :)