the-canvas-access

2.0.7 • Public • Published

the-canvas-access

Build Status npm Version JS Standard

Access for html canvas

Installation

$ npm install the-canvas-access --save

Usage

'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.

Links

Readme

Keywords

Package Sidebar

Install

npm i the-canvas-access

Weekly Downloads

10

Version

2.0.7

License

MIT

Unpacked Size

116 kB

Total Files

65

Last publish

Collaborators

  • okunishinishi