Advertisement
Guest User

ruby color random

a guest
May 20th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.18 KB | None | 0 0
  1.  
  2. #### Generate color pallette ####
  3. print "---- colors ----\n"
  4. colors = []
  5. 1.upto(16) { |i|
  6.         colors += "#%06x" % (rand * 0xffffff)
  7.         puts "#{i}) #{colors[i]}"
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement