Sha256: e3c3daeb92d07822555947289567d94a6cd7b9ec074f7053959131c5e79421db

Contents?: true

Size: 258 Bytes

Versions: 67

Compression:

Stored size: 258 Bytes

Contents

#! /usr/local/bin/ruby -w
require 'RMagick'

# Demonstrate the Image#color_reset! method

f = Magick::Image.new(100,100) { self.background_color = 'white' }
red = Magick::Pixel.from_color('red')
f.color_reset!(red)
#f.display
f.write('color_reset.gif')
exit

Version data entries

67 entries across 67 versions & 2 rubygems

Version Path
rmagick-2.13.4 doc/ex/color_reset.rb
rmagick-2.13.3 doc/ex/color_reset.rb
rmagick-2.13.3.rc1 doc/ex/color_reset.rb
rmagick-2.13.2 doc/ex/color_reset.rb
rdp-rmagick-0.0.0 doc/ex/color_reset.rb
rmagick-2.13.1 doc/ex/color_reset.rb
rmagick-2.12.2 doc/ex/color_reset.rb
rmagick-2.12.1 doc/ex/color_reset.rb
rmagick-2.12.0 doc/ex/color_reset.rb
rmagick-2.11.1 doc/ex/color_reset.rb
rmagick-2.10.0 doc/ex/color_reset.rb
rmagick-2.11.0 doc/ex/color_reset.rb
rmagick-1.10.0 doc/ex/color_reset.rb
rmagick-1.10.1 doc/ex/color_reset.rb
rmagick-1.12.0 doc/ex/color_reset.rb
rmagick-1.11.1 doc/ex/color_reset.rb
rmagick-1.13.0 doc/ex/color_reset.rb
rmagick-1.11.0 doc/ex/color_reset.rb
rmagick-1.15.1 doc/ex/color_reset.rb
rmagick-1.15.10 doc/ex/color_reset.rb