Sha256: fa190e949cb08de366e2ff4c73aaeffaa22dab3cb5767279f732a06c50295819

Contents?: true

Size: 255 Bytes

Versions: 13

Compression:

Stored size: 255 Bytes

Contents

#!/usr/bin/env 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

13 entries across 13 versions & 3 rubygems

Version Path
rmagick-windows-2.16.5 doc/ex/color_reset.rb
rmagick-windows-2.16.4 doc/ex/color_reset.rb
rmagick-windows-2.16.3 doc/ex/color_reset.rb
rmagick-windows-2.16.2 doc/ex/color_reset.rb
rmagick-windows-2.16.1 doc/ex/color_reset.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/rmagick-2.16.0/doc/ex/color_reset.rb
rmagick-2.16.0 doc/ex/color_reset.rb
rmagick-2.15.4 doc/ex/color_reset.rb
rmagick-2.15.3 doc/ex/color_reset.rb
rmagick-2.15.2 doc/ex/color_reset.rb
rmagick-2.15.1 doc/ex/color_reset.rb
rmagick-2.15.0 doc/ex/color_reset.rb
rmagick-2.14.0 doc/ex/color_reset.rb