Sha256: 29e4704de7def4087331908e4fdbac0d1c3c064c157ba0c4196def3a248eebd3

Contents?: true

Size: 363 Bytes

Versions: 13

Compression:

Stored size: 363 Bytes

Contents

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

rvg = Magick::RVG.new(200, 100) do |canvas|
  canvas.background_fill = 'white'
  canvas.rect(150, 50, 25, 25).round(6)
    .styles(:fill=>'none', :stroke=>'purple', :stroke_width=>10, :stroke_dasharray=>[10,5])
  canvas.rect(199, 99).styles(:fill=>'none', :stroke=>'blue')
end

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

Version data entries

13 entries across 13 versions & 3 rubygems

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