draw Sprite
Draws the given sprite to the canvas at its current position or at the specified x and y coordinates.
Parameters
The sprite to draw.
The x-coordinate to draw the sprite at. Defaults to the sprite's current x position.
The y-coordinate to draw the sprite at. Defaults to the sprite's current y position.
The rotation to draw the sprite with. Defaults to the sprite's current rotation.
The scale to draw the sprite with. Defaults to the sprite's current scale
Draws the given sprite to the canvas at its current position or at the specified x, y, and z coordinates.
Parameters
The sprite to draw.
The x-coordinate to draw the sprite at. Defaults to the sprite's current x position.
The y-coordinate to draw the sprite at. Defaults to the sprite's current y position.
The z-coordinate to draw the sprite at. Defaults to the sprite's current z position.