Created
August 13, 2016 00:01
-
-
Save livmaria7891/3acf8e6e6704eb0d013074c2328ec6b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rainbow' | |
rainbow = [{red: {r:255,g:0,b:0}},{orange: {r:255,g:127,b:0}},{yellow: {r:255,g:255,b:0}},{green: {r:0,g:255,b:0}},{blue: {r:0,g:0,b:255}},{indigo: {r:75,g:0,b:130}},{violet: {r:143,g:0,b:255}}] | |
rainbow.each do |x| | |
x.keys.each do |k| | |
puts Rainbow(k.to_s).color(k) | |
end | |
end | |
puts String.colors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment