MemoryCanvaslist

MemoryCanvaslist

Extends Array with additional methods to esily keep track of all canvas in layout.

Constructor

new MemoryCanvaslist()

Source:

Extends

  • Array

Methods

addCanvas(canvas)

All given HTMLCanvasElements are included in {MemoryCanvaslist} Correction of width and height values are important.

Source:

All given HTMLCanvasElements are included in {MemoryCanvaslist} Correction of width and height values are important.

Parameters:
Name Type Description
canvas Array

list of canvas elements.

randomPair(srcCanvas) → {Object}

Chooses randomly pair Canvas.

Source:

Chooses randomly pair Canvas.

Parameters:
Name Type Description
srcCanvas Object

Canvas element that needs to be paired.

Returns:

Paired elements.

Type
Object