Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 503 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 503 Bytes

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