voxel-colorist
A module for colour grading your voxels in voxel.js, for use with voxel-pp.
This is done using a 3D colour lookup table (as detailed here and here), which is surprisingly simple and easy to work with. The Witness Blog has a good explanation too.
Installation
npm install voxel-colorist voxel-pp
Usage
colorist(processor)
Creates a new colour-grader instance.
colorist(processor).table(src|element|texture)
Loads a new colour table from a canvas/image element or image URL.
// Create the gamevar game =chunkSize: 32// Load up post-processingvar composer = game// Add colour gradingvar colorist = composer// Load a 33*33*33 colour tablevar img =img {colorist};imgsrc = '/warm.png'