big-render

1.0.3 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i big-render

Weekly Downloads

7

Version

1.0.3

License

MIT

Unpacked Size

5.43 kB

Total Files

5

Last publish

Collaborators

  • jacob-grahn