Last active
August 29, 2015 13:56
-
-
Save mmcdaris/8831271 to your computer and use it in GitHub Desktop.
show me the colors!
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
colors = [] | |
(20..130).each do |num| | |
colors << "\033[#{num}m#{num} \033[0m" | |
end | |
colors.each_slice(10).each { |ar| ar.map {|c| print c }; puts "\n" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment