1.0.0 • Published 7 years ago

@jacobmischka/transform-color v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

@jacobmischka/transform-color

transformColor(start, end, transformedValue);

Creates a color that's transformedValue of the way between start and end.

Very simple wrapper over the excellent Color library.

Usage:

import transformColor from '@jacobmischka/transform-color';

let purple = transformColor('red', 'blue', 0.5);
let lightPink = transformColor('white', 'red', 0.1);
let translucentOrange = transformColor('transparent', 'orange', 0.4);