3.0.9 • Published 10 days ago

@dldc/colors v3.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
10 days ago

InterpolatedColors

A tool to create dynamic colors by interpolating multiple colors

Gist

import InterpolatedColor from 'interpolated-colors';

const gradient = InterpolatedColor([
  [0, 'red'],
  [30, 'blue'],
  [100, 'green'],
]);

console.log(gradient(0)); // #FF0000 => red
console.log(gradient(30)); // #0000FF => blue
console.log(gradient(100)); // #008000 => green
console.log(gradient(55)); // #00A0D4 => between blue and green
console.log(gradient(55.5)); // #00A2D3 => a bit more geen
3.0.9

10 days ago

3.0.8

28 days ago

3.0.7

3 months ago

3.0.6

5 months ago

3.0.5

7 months ago

3.0.4

8 months ago

3.0.3

10 months ago

3.0.2

11 months ago