Skip to content

Instantly share code, notes, and snippets.

@dayvsonlima
Forked from grough/00-100-colours.gif
Last active August 29, 2015 14:21
Show Gist options
  • Save dayvsonlima/6f0fe0b8c7f33d4c8776 to your computer and use it in GitHub Desktop.
Save dayvsonlima/6f0fe0b8c7f33d4c8776 to your computer and use it in GitHub Desktop.
require "rubygems"
require "rmagick"
include Magick
frames = 100
gif = ImageList.new
frames.times do |i|
colour = "#"; 3.times {
colour << "%02X" % (rand * 256)
}
gif << Image.new(130,50).color_fill_to_border(1, 1, colour)
end
gif.write("00-#{frames}-colours.gif")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment