Sha256: 3879c490d031177dc4a69e10fff11c3e4220695c6a6be2f94d17f12622d79fc8

Contents?: true

Size: 723 Bytes

Versions: 67

Compression:

Stored size: 723 Bytes

Contents

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

# Demonstrate the Image#color_fill_to_border method

before = Magick::Image.new(200,200) {
    self.background_color = 'white'
    self.border_color = 'black'
    }
before.border!(1,1,'black')

circle = Magick::Draw.new
circle.fill('transparent')
circle.stroke('black')
circle.stroke_width(2)
circle.circle(100,100,180,100)
circle.fill('plum1')
circle.stroke('transparent')
circle.circle( 60,100, 40,100)
circle.circle(140,100,120,100)
circle.circle(100, 60,100, 40)
circle.circle(100,140,100,120)
circle.draw(before)

before.write('color_fill_to_border_before.gif')

after = before.color_fill_to_border(100,100, 'aquamarine')
after.write('color_fill_to_border_after.gif')
exit

Version data entries

67 entries across 67 versions & 2 rubygems

Version Path
rmagick-1.14.0 doc/ex/color_fill_to_border.rb
rmagick-1.15.10 doc/ex/color_fill_to_border.rb
rmagick-1.14.1 doc/ex/color_fill_to_border.rb
rmagick-1.15.11 doc/ex/color_fill_to_border.rb
rmagick-1.15.12 doc/ex/color_fill_to_border.rb
rmagick-1.15.14 doc/ex/color_fill_to_border.rb
rmagick-1.15.15 doc/ex/color_fill_to_border.rb
rmagick-1.15.13 doc/ex/color_fill_to_border.rb
rmagick-1.15.17 doc/ex/color_fill_to_border.rb
rmagick-1.15.3 doc/ex/color_fill_to_border.rb
rmagick-1.15.4 doc/ex/color_fill_to_border.rb
rmagick-1.15.16 doc/ex/color_fill_to_border.rb
rmagick-1.15.2 doc/ex/color_fill_to_border.rb
rmagick-1.15.6 doc/ex/color_fill_to_border.rb
rmagick-1.15.5 doc/ex/color_fill_to_border.rb
rmagick-1.15.8 doc/ex/color_fill_to_border.rb
rmagick-1.15.7 doc/ex/color_fill_to_border.rb
rmagick-1.7.4 doc/ex/color_fill_to_border.rb
rmagick-1.15.9 doc/ex/color_fill_to_border.rb
rmagick-1.7.1 doc/ex/color_fill_to_border.rb