Skip to content

A ruby gem that provides color names and the rgb and hexadecimal codes.

License

Notifications You must be signed in to change notification settings

bitmaybewise/colorido

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Colorido

A gem that provides color names and the rgb and hexadecimal codes.

gem install colorido

How to use

colorido = Colorido.new

colorido.colors # returns all colors as structs

# color sample
#<struct Struct::Color codename="bright_green", name="\"Bright Green\"", hex="#6f0", rgb=#<struct Struct::RGB red="102", green="255", blue="0">>

colorido.names # returns all color names

colorido.codenames # returns all color codenames

colorido.pick_random # pick a random color

About

A ruby gem that provides color names and the rgb and hexadecimal codes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages