Skip to content

Create a ramp of lightness and saturation from a single color

Notifications You must be signed in to change notification settings

Enjinoir/colorRamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colorRamp

Create a ramp of lightness and saturation from a single color Recreates the css color non-seperable blending modes in a js only solution.

Ramp can be altered throguh the genRamp function. This is where the constant for the grayscale the ramp is based on and the saturation values are held. The values are returned in an array called colorRamp

-- to use -- var colorscaleramp = require('colorscaleramp');

var colors = colorscaleramp.genRamp('#7986cb'); console.log(colors);

Delete test to instantly save on precious bits!

live test version here https://jsfiddle.net/enjinoir/n45mx1jb/

About

Create a ramp of lightness and saturation from a single color

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published