Skip to content
forked from gyoshev/cuttle

Find the color transition function between two colors

Notifications You must be signed in to change notification settings

nwhittaker/cuttle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cuttle

Cuttle suggests color transition functions based on provided examples.

API Reference

suggest(from, to)

Suggests color functions that map from the from color to the to color. Returns an array of suggestions, sorted by difference from the target color.

var suggestions = cuttle.suggest("#000", "#333");

// suggestions = [
//    { difference: 0, format: "lighten(@input, 20%)" }
// ]

About

Find the color transition function between two colors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.2%
  • CSS 14.1%
  • HTML 9.7%