Project

tiedye

0.0
Low commit activity in last 3 years
A long-lived project that still receives updates
Change colors from hex to rgb or named value
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 4.7.3
>= 0
>= 2.2.33

Runtime

>= 2.2.33
 Project Readme

Tiedye

Installation

Add this line to your application's Gemfile:

gem 'tiedye'

And then execute:

$ bundle

Or install it yourself:

$ gem install tiedye

Building

# Update Tiedye::Version

$ gem build tiedye.gemspec 

$ gem push tiedye-0.2.3.gem

Usage

Tiedye.all_colors.count => 504

Tiedye.all_colors => ["alice_blue", "antique_white", "antique_white1", .....]

You can call Tiedye.any_named_color.

Tiedye.alice_blue => "#f0f8ff"

Tiedye.red => "#ff0000"

Tiedye.to_rgb("#ff0000") => [255, 0, 0]

Tiedye.to_hex([255, 0, 0]) => "#FF0000"

Tiedye.to_hex(255, 0, 0) => "#FF0000"

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author

Authored by John Maddux. jemaddux.com