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-1.15.0 doc/ex/color_reset.rb
rmagick-1.14.1 doc/ex/color_reset.rb
rmagick-1.14.0 doc/ex/color_reset.rb
rmagick-1.15.12 doc/ex/color_reset.rb
rmagick-1.15.15 doc/ex/color_reset.rb
rmagick-1.15.13 doc/ex/color_reset.rb
rmagick-1.15.14 doc/ex/color_reset.rb
rmagick-1.15.11 doc/ex/color_reset.rb
rmagick-1.15.4 doc/ex/color_reset.rb
rmagick-1.15.16 doc/ex/color_reset.rb
rmagick-1.15.17 doc/ex/color_reset.rb
rmagick-1.15.2 doc/ex/color_reset.rb
rmagick-1.15.3 doc/ex/color_reset.rb
rmagick-1.15.5 doc/ex/color_reset.rb
rmagick-1.15.8 doc/ex/color_reset.rb
rmagick-1.15.7 doc/ex/color_reset.rb
rmagick-1.15.6 doc/ex/color_reset.rb
rmagick-1.8.1 doc/ex/color_reset.rb
rmagick-1.15.9 doc/ex/color_reset.rb
rmagick-1.7.1 doc/ex/color_reset.rb