Skip to content

Instantly share code, notes, and snippets.

@livmaria7891
Created August 13, 2016 00:01
Show Gist options
  • Save livmaria7891/3acf8e6e6704eb0d013074c2328ec6b4 to your computer and use it in GitHub Desktop.
Save livmaria7891/3acf8e6e6704eb0d013074c2328ec6b4 to your computer and use it in GitHub Desktop.
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