Class: Drawable

Drawable(x, y)

Base class for all drawable objects on the canvas.

Constructor

new Drawable(x, y)

Creates a new Drawable.
Parameters:
Name Type Description
x number The initial x-coordinate.
y number The initial y-coordinate.
Source:

Members

hidden :boolean

Type:
  • boolean
Source:

Methods

draw()

Draws the object on the canvas. This method should be overridden by subclasses.
Source: