Skip to content

ColorMatcher it's a gem that given a color, returns the nearest one from a collection

License

Notifications You must be signed in to change notification settings

pedrogimenez/color_matcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ColorMatcher

Build Status

ColorMatcher it's a gem that given a color, returns the nearest one from a collection.

Usage

You should read the tests as they are the most updated documentation.

There's only one method:

  ColorMatcher.closest_color("000000", ["000000", "ffffff"]) # => 000000

How do we use it at Chicisimo

We use the color matcher at Chicisimo to match our looks with the color picked using the slider in our discover section:

Algorithm

We are using the Euclidean distance algorithm as described here.

License

ColorMatcher is open-sourced software licensed under the MIT license.

About

ColorMatcher it's a gem that given a color, returns the nearest one from a collection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages