API Docs for: 0.1.1
Show:

Context2d Class

Module: Joy

Constructor

Context2d

(
  • options
)

Parameters:

  • options Object

Methods

clear

()

Clears the entire screen.

render

()

Render everything in the buffer to the screen.

Attributes

Events.ADDED

String static readonly

Triggered when DisplayObject is added into DisplayObjectContainer.

Events.COLLISION

String static readonly

Triggered on collision update.

Events.COLLISION_EXIT

String static readonly

Triggered at the moment collision ends.

Events.COLLISION_START

String static readonly

Triggered at the moment collision starts.

Events.INIT

String static readonly

Triggered when DisplayObject is initialized.

Events.REMOVED

String static readonly

Triggered when DisplayObject is removed from DisplayObjectContainer.

Events.SCENE_ACTIVE

String static readonly

Triggered when scene is loaded.

Events.UPDATE

String static readonly

Triggered at every frame.