big-render
v1.0.3
Published
Virtual canvas for really big drawings
Downloads
42
Readme
Big Render
Draw to a virtual canvas that uses a minimal amount of memory, and has no size constraints. Portions of the virtual canvas can then be rendered to a real canvas as needed.
Installation
npm install big-render
Quickstart
// draw some big things
const big = new BigRender()
big.fillRect(0, 0, 5000, 100)
big.fillRect(2000, 200, 5000, 100)
// render a portion to a canvas
const offsetX = 2000
const offsetY = 0
big.render(someCanvas.getContext('2d'), offsetX, offsetY)