2.0.7 • Published 6 years ago

the-canvas-access v2.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago