1.0.3 • Published 5 years ago

big-render v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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)
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago