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