0.0
No commit activity in last 3 years
No release in over 3 years
Matches the nearest HEX color in a collection given a color
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
 Project Readme

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.