Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

lut

0.2.0 • Public • Published

lut

Lookup Table

Renders RGB lookup tables to a canvas element.

Installation

npm install lut

Usage

lut(red, green, blue, canvas)

var lut = require('lut')
  , canvas = document.createElement('canvas')
 
// Defaults to 32x32x32, creating a new canvas element:
document.body.appendChild(lut())
 
// But you can render on top of an existing canvas,
// and specify the resolution (number of shades) for
// each colour too:
document.body.appendChild(canvas)
lut(64, 8, 128, canvas)

Keywords

none

install

npm i lut

Downloadsweekly downloads

16

version

0.2.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar