gute icon indicating copy to clipboard operation
gute copied to clipboard

Fix Graphics.drawLine(), add drawCircle(), fillCircle(), drawRect()

Open badlogic opened this issue 4 years ago • 0 comments

Need to call ctx.beginPath(), otherwise subsequent calls to Graphics.drawLine() will add up in a single path. Also applied formatting to the file. Can amend if the formatting is a no-no.

The additional methods aren't super useful for pixelart games due to non-configurable anti-aliasing of the corresponding Canvas API methods. They can be useful for debugging purposes though.

badlogic avatar Aug 15 '21 22:08 badlogic