Sha256: 7f23c0a3a324772e5d6d783a8a75df3b3aa647514cbc34c01e07a333afb98130

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 Bytes

Contents

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

include Magick

draw = Draw.new

draw.stroke = 'blue'
draw.stroke_width 5.0
draw.fill = 'red'

draw.affine(1,0,0,1,-60,100)

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.polygon(*points)

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

draw.draw b

b.write('draw_polygon_affine.jpg')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rmagick4j-0.3.5 test/eyetests/tests/draw_polygon_affine.rb