doc/ex/sepiatone.rb in rmagick-1.15.17 vs doc/ex/sepiatone.rb in rmagick-2.0.0

- old
+ new

@@ -1,15 +1,8 @@ #! /usr/local/bin/ruby -w require 'RMagick' -include Magick -img = Image.read('images/Flower_Hat.jpg').first - -begin - sepiatone = img.sepiatone(MaxRGB * 0.8) -rescue NotImplementedError - sepiatone = Image.read('images/notimplemented.gif').first -end - +img = Magick::Image.read('images/Flower_Hat.jpg').first +sepiatone = img.sepiatone(Magick::QuantumRange * 0.8) sepiatone.write('sepiatone.jpg')