amalgamatr

0.0.1 • Public • Published

Amalgamatr.js

Takes in a list of colors, and selects one that fits within the specified percentage.

Usage:

  var colors = ['#ff0000', '#00ff00', '#0000ff'];
  var newColor = $.ColorFromGradient(colors, 0.25);

Works with some standard color names, hex colors, rgb() and rgba(). Outputs a color using rgba().

Readme

Keywords

Package Sidebar

Install

npm i amalgamatr

Weekly Downloads

4

Version

0.0.1

License

MIT

Last publish

Collaborators

  • ryanlanciaux
  • thatjoecoutcher