2.0.7 • Published 7 years ago
the-canvas-access v2.0.7
the-canvas-access
Access for html canvas
Installation
$ npm install the-canvas-access --saveUsage
'use strict'
const { TheCanvasAccess } = require('the-canvas-access')
async function tryExample () {
  const canvas = document.getElementById('my-canvas-01')
  const canvasAccess = new TheCanvasAccess(canvas)
  console.log(
    canvasAccess.getMeanColorFor(0, 0, 128, 128)
  ) // -> get mean color for rect
}
tryExample().catch((err) => console.error(err))API Guide
License
This software is released under the MIT License.