Skip to content

kyletolle/rgb_to_hex_color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RgbToHexColor

Gem Version

Turn a tuple of rgb colors into its corresponding hexadecimal color value!

Install

gem install rgb_to_hex_color

Usage

require 'rgb_to_hex_color'

rgb_to_hex_color = RgbToHexColor.new(170, 187, 204)

rgb_to_hex_color.rgb #=> [170, 187, 204]
rgb_to_hex_color.hex #=> '#AABBCC'

Related Gem

HexToRgb - Convert hex colors into rgb colors.

Development

Install

gem install --dev rgb_to_hex_color

Specs

The default Rake task is to run the specs.

rake

License

MIT

About

Convert rgb colors to their hexadecimal value.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages