Sha256: b07f5c916bb5ca4c1e6b21436c99eb5855a1e47bed74593c1eadb4e4d782d927

Contents?: true

Size: 479 Bytes

Versions: 6

Compression:

Stored size: 479 Bytes

Contents

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

include Magick

canvas = Image.new(240, 300,
              HatchFill.new('white','lightcyan2'))
gc = Draw.new

gc.stroke('#001aff')
gc.stroke_width(3)
gc.fill('#00ff00')

x = 120
y = 32.5
gc.polygon(x,    y,     x+29, y+86,  x+109, y+86,
           x+47, y+140, x+73, y+226, x,     y+175,
           x-73, y+226, x-47, y+140, x-109, y+86,
           x-29, y+86)

gc.draw(canvas)
canvas.write('draw_rmagick_test_04.jpg')

Version data entries

6 entries across 6 versions & 1 rubygems

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