0.0.7 • Published 8 years ago

color-nuker v0.0.7

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

Color Nuker (visualizer utils)

Here I prepare details for future color pickers.

Available

  • Quad
  • Wheel
  • Triangle
  • Strip
  • Circle

Color models

  • HSV
  • HSL
  • HCG
  • RGB
  • HWB

Features

  • Too many variants of swatches and color models
  • ES6 support
  • WebGL support
  • Low level library
  • Anti-aliasing support
  • Coordinate manipulation

No support

  • Alpha channel, planned add this later

NPM

Here is NPM repository

  npm install color-nuker

API

Example

let {GLSLConvert, GLSLOrder, RealOrder, WheelBase} = require("color-nuker");
let wheel = new WheelBase();
wheel.setGLSLOrder(GLSLOrder.HSX);
wheel.setRealOrder(RealOrder.HSX);
wheel.setGLSLConvert(GLSLConvert.HSV);
wheel.resize(256, 256);
wheel.draw();
document.body.appendChild(wheel.getCanvas());
0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago