-
-
Save dayvsonlima/6f0fe0b8c7f33d4c8776 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 "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