Sha256: ab8f1e90b33973b536d3fa0944c837c18a8f9dca1caa22e0c8e33bf207e28112

Contents?: true

Size: 382 Bytes

Versions: 6

Compression:

Stored size: 382 Bytes

Contents

require File.join(File.dirname(__FILE__), 'new_image.rb')

include Magick

draw = Draw.new

draw.stroke = 'blue'
draw.stroke_width 5.0

points = [350,75,379,161,469,161,397,215,423,301,350,250,277,301,303,215,231,161,321,161].collect { |x| x/2.round }

draw.polyline(*points)

b = Image.new(300, 300, HatchFill.new('white', 'black'))

draw.draw b

b.write('draw_polyline_basic.jpg')

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rmagick4j-0.4.0-java test/eyetests/tests/draw_polyline_basic.rb
rmagick4j-0.3.9-java test/eyetests/tests/draw_polyline_basic.rb
rmagick4j-0.3.8 test/eyetests/tests/draw_polyline_basic.rb
rmagick4j-0.3.5 test/eyetests/tests/draw_polyline_basic.rb
rmagick4j-0.3.7 test/eyetests/tests/draw_polyline_basic.rb
rmagick4j-0.3.6 test/eyetests/tests/draw_polyline_basic.rb