doc/ex/rvg_linejoin.rb in rmagick-2.16.0 vs doc/ex/rvg_linejoin.rb in rmagick-3.0.0

- old
+ new

@@ -1,15 +1,15 @@ require 'rvg/rvg' Magick::RVG.dpi = 90 -MITER = {:stroke=>'black', :stroke_width=>70, :fill=>'none', :stroke_linejoin=>'miter'} -ROUND = {:stroke=>'black', :stroke_width=>70, :fill=>'none', :stroke_linejoin=>'round'} -BEVEL = {:stroke=>'black', :stroke_width=>70, :fill=>'none', :stroke_linejoin=>'bevel'} -THIN = {:stroke=>'#ffcccc', :stroke_width=>5, :fill=>'none'} -TEXT = {:text_anchor=>'middle', :font_size=>50, :font_family=>'Verdana'} -CIRCLE = {:fill=>'#ffcccc', :stroke=>'none'} +MITER = { stroke: 'black', stroke_width: 70, fill: 'none', stroke_linejoin: 'miter' } +ROUND = { stroke: 'black', stroke_width: 70, fill: 'none', stroke_linejoin: 'round' } +BEVEL = { stroke: 'black', stroke_width: 70, fill: 'none', stroke_linejoin: 'bevel' } +THIN = { stroke: '#ffcccc', stroke_width: 5, fill: 'none' } +TEXT = { text_anchor: 'middle', font_size: 50, font_family: 'Verdana' } +CIRCLE = { fill: '#ffcccc', stroke: 'none' } rvg = Magick::RVG.new(12.cm, 3.5.cm).viewbox(0, 0, 1200, 350) do |canvas| canvas.desc = 'Example linecap - demonstrates three stroke-linecap values' canvas.background_fill = 'white' @@ -32,9 +32,9 @@ bevel.path('M -125,150 L 0,0 L 125,150').styles(THIN) bevel.circle(8).styles(CIRCLE) bevel.text(0, 230, "'bevel' join").styles(TEXT) end - canvas.rect(1192, 345, 1, 1).styles(:stroke=>'blue', :fill=>'none') + canvas.rect(1192, 345, 1, 1).styles(stroke: 'blue', fill: 'none') end rvg.draw.write('rvg_linejoin.gif')