exports

A scene that renders to a HTMLCanvasElement.

Constructor

new exports(width, height)

Creates a new CanvasScene.

Parameters:
NameTypeDescription
widthnumber

The width of the canvas.

heightnumber

The height of the canvas.

exports

A scene that can animate VectorObjects.

Constructor

new exports(width, height)

Creates a new Scene.

Parameters:
NameTypeDescription
widthnumber

The width of the scene.

heightnumber

The height of the scene.

exports

A scene that renders to a SVG element.

Constructor

new exports(width, height)

Creates a new SVGScene.

Parameters:
NameTypeDescription
widthnumber

The width of the SVG.

heightnumber

The height of the SVG.