doc/ex/implode.rb in rmagick-3.1.0 vs doc/ex/implode.rb in rmagick-3.2.0
- old
+ new
@@ -13,18 +13,18 @@
implosion = 0.25
8.times do
frames << img.implode(implosion)
legend.annotate(frames, 0, 0, 10, 20, format('% 4.2f', implosion))
- frames.matte = false
+ frames.alpha(Magick::DeactivateAlphaChannel)
implosion -= 0.10
end
7.times do
implosion += 0.10
frames << img.implode(implosion)
legend.annotate(frames, 0, 0, 10, 20, format('% 4.2f', implosion))
- frames.matte = false
+ frames.alpha(Magick::DeactivateAlphaChannel)
end
frames.delay = 10
frames.iterations = 0
puts 'Producing animation...'