doc/ex/path.rb in rmagick-2.13.4 vs doc/ex/path.rb in rmagick-2.14.0

- old
+ new

@@ -1,18 +1,18 @@ -#! /usr/local/bin/ruby -w -require 'RMagick' +#!/usr/bin/env ruby -w +require 'rmagick' imgl = Magick::ImageList.new imgl.new_image(390, 240, Magick::HatchFill.new('white','lightcyan2')) gc = Magick::Draw.new # Draw path gc.fill_opacity 0 gc.stroke 'red' gc.stroke_width 3 -gc.path "M20,120 C20,20 170,20 170,120 S320,220 320,120" +gc.path 'M20,120 C20,20 170,20 170,120 S320,220 320,120' # Annotate # Show end points gc.fill_opacity 0 gc.stroke 'gray50' @@ -39,11 +39,11 @@ gc.circle 170,220, 173,223 # Add labels gc.font_weight Magick::NormalWeight gc.font_style Magick::NormalStyle -gc.stroke "none" # unset stroke color +gc.stroke 'none' # unset stroke color gc.fill 'black' # Add end point labels gc.text 30,125, "'20,120'" gc.text 180,125, "'170,120'" @@ -59,6 +59,5 @@ gc.draw imgl imgl.border!(1,1, 'lightcyan2') imgl.write 'path.gif' -