graphics

procedural graphics

virtuosity.engine2d.graphics

Classes

Objects

Methods


Classes

Circle*

A procedurally generated engine2d circle

Rectange*

A procedurally generated engine2d rectangle

Box*

A procedurally generated engine2d box

Line*

A procedurally generated engine2d line

Polygon*

A procedurally generated engine2d line



Objects

add

add graphics

virtuosity.engine2d.graphics.add

delete

delete a graphics entity

virtuosity.engine2d.graphics.delete


Methods

get

get a specific graphics entity

virtuosity.engine2d.graphics.get(id, container);


Parameter Type Description
id String id of the graphics entity
container String id of the container the graphics entity is in

containerClear

tells the container whether to clear canvas on redraw

virtuosity.engine2d.graphics.containerClear(container, clear);


Parameter Type Description
container String id of the container
clear Boolean whether to clear the container canvas on redraw