Class: Thread

Rather complex timer object for the rather lazy.

Implements

Thread Method: constructor

Syntax

var thread = new Thread( options );

Arguments

  1. options - (object) An object with the options for the Thread.

Options

Events

Returns

  1. (object) - this (Thread instance)

Thread Method: start

Call to start your thread. Not neccessary if options.instant is set to true.

Syntax

thread.start();

Returns

  1. (object) - this (Thread instance)

Thread Method: stop

Will stop (pause) the thread. Can be resumed with Thread.start.

Syntax

thread.stop();

Returns

  1. (object) - this (Thread instance)

Notes

Using this is not mandatory as you can simply use any other mean of redrawing the canvas at a given interval.

  1. CANVAS
  2. LayerHash
  3. Layer
  4. CanvasItem
  5. Thread
  6. Cmorph