Sha256: 071ce4fd13ef919454f2b7de7b888134284a3bc8a3df9ef5197d8202caac0aa9

Contents?: true

Size: 303 Bytes

Versions: 13

Compression:

Stored size: 303 Bytes

Contents

#!/usr/bin/env ruby -w
require 'rvg/rvg'

rvg = Magick::RVG.new(150, 150) do |canvas|
  canvas.background_fill = ''
  canvas.circle(40, 75, 75).styles(:stroke=>'blue', :fill=>'#00ff00',:stroke_width=>8)
  canvas.rect(149,149).styles(:fill=>'none',:stroke=>'blue')
end

rvg.draw.write('stroke_fill.gif')

Version data entries

13 entries across 13 versions & 3 rubygems

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