new CanvasGraphics()
A set of functions used by the canvas renderer to draw the primitive graphics data.
Methods
-
<static> renderGraphics(graphics, context)
-
Renders a Phaser.Graphics object to a canvas.
Parameters:
Name Type Description graphics
Graphics the actual graphics object to render
context
CanvasRenderingContext2D the 2d drawing method of the canvas