Sha256: 75d208890fd473afafa05777b7b92f6b396cd4412567391f922b7c1656eea113

Contents?: true

Size: 369 Bytes

Versions: 6

Compression:

Stored size: 369 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 = 10_000

animation.write('swirl.gif')
exit

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rmagick-4.1.0.rc2 doc/ex/swirl.rb
rmagick-4.1.0.rc1 doc/ex/swirl.rb
rmagick-4.0.0 doc/ex/swirl.rb
rmagick-3.2.0 doc/ex/swirl.rb
rmagick-3.1.0 doc/ex/swirl.rb
rmagick-3.0.0 doc/ex/swirl.rb