Constructor Summary
Public Constructor | ||
public |
constructor(img: Image) Initializes. |
Inherited Summary
From class Drawable | ||
public |
Set the rectangular bounds of the section to draw. |
|
public |
draw(ctx: CanvasRenderingContext2D, x: number, y: number) Draws at given position. |
Public Constructors
public constructor(img: Image) source
Initializes.
Params:
Name | Type | Attribute | Description |
img | Image | Image to draw |
Public Methods
public draw(ctx: *, x: *, y: *) source
Override:
Drawable#drawParams:
Name | Type | Attribute | Description |
ctx | * | ||
x | * | ||
y | * |