1.0.0 • Published 8 years ago
@jacobmischka/transform-color v1.0.0
@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);1.0.0
8 years ago