Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Render RGB lookup tables to a canvas element

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.md
Octocat-spinner-32 README.md
Octocat-spinner-32 demo.js
Octocat-spinner-32 image.png
Octocat-spinner-32 index.html
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
README.md

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)
Something went wrong with that request. Please try again.