Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 330 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 330 Bytes

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().