Sha256: 4db575de12c5677665ed89596082c0873338a5e91b0a38eeaa914cc1b8e9b6a8

Contents?: true

Size: 301 Bytes

Versions: 6

Compression:

Stored size: 301 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

6 entries across 6 versions & 1 rubygems

Version Path
rmagick-4.1.0.rc2 doc/ex/stroke_fill.rb
rmagick-4.1.0.rc1 doc/ex/stroke_fill.rb
rmagick-4.0.0 doc/ex/stroke_fill.rb
rmagick-3.2.0 doc/ex/stroke_fill.rb
rmagick-3.1.0 doc/ex/stroke_fill.rb
rmagick-3.0.0 doc/ex/stroke_fill.rb