Submitted by Roland on Wed, 2009-01-14 20:01
Let's say you had 1796 photos in a directory from flickr and wanted to animate them in Shoes which is built on Ruby, how would you do it?
Here's how I did it (forgive my bad code, it was just a fun 1st project and of course you could do this in QuickTime Pro with no programming but that wouldn't be as much "fun" :-) !):
Dir.chdir("/a directory with 1796 skyte photos")
skyte_pics = Dir.glob("*.jpg")
size = skyte_pics.size
@skyte = image skyte_pics[0]
animate(200) do |frame|
close if frame > size
@skyte.path = skyte_pics[frame]
end
end
}