Skip to content

About

A simple ruby gem that allows to get the name of a color given as a hex

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

ColorName

ColorName is a simple ruby gem that allows you to get a name of any color. Based on Name That Color.

Install

gem install color_name

Or add the following line to your Gemfile:

gem 'color_name'

Usage

irb(main):001:0> ColorName.get('#f00')
=> "Red"
irb(main):002:0> ColorName.get('#e02253')
=> "Amaranth"

License

Licensed under the MIT license, see the separate LICENSE file.

About

A simple ruby gem that allows to get the name of a color given as a hex

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages