1.0.0 • Published 8 years ago

oil-paints v1.0.0

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

Oil Paints

A collection of tools to mix colors as if they were paints.

Usage

var paints = require('oil-paints');

var basic = paints([255, 0, 0], [0, 255, 0], [0, 0, 255], [0, 0, 0], [255, 255, 255]);

var nearest = basic.nearest([100, 20, 35]);

// -> ?

var colorWheel = basic.wheel();

// -> ? (an adarray to be saved with require('save-pixels');

var mix = basic.mix([100, 20, 35]);

// -> ? (an array of the parts per color to make this color);

var img = // get some ndarray image via require('get-pixels');

var nearest = basic.img.nearest(img);

// -> ?

var pallete = basic.img.pallete(img);

// -> ?