Sha256: 2695614ef39b8e6c7a4f4b6c1de4a47a5c962693d085790f4844ceaf8b1a89f7
Contents?: true
Size: 367 Bytes
Versions: 13
Compression:
Stored size: 367 Bytes
Contents
#!/usr/bin/env ruby -w require 'rmagick' # Demonstrate the Image#swirl method img = Magick::Image.read('images/Flower_Hat.jpg').first # Make an animated image. animation = Magick::ImageList.new animation << img.copy 30.step(360,45) { |degrees| animation << img.swirl(degrees) } animation.delay = 20 animation.iterations = 10000 animation.write('swirl.gif') exit
Version data entries
13 entries across 13 versions & 3 rubygems