Sha256: 59afb59a1ad858cb81d15fcf21de228ae22b8c2d1ebb981136c6b2cd2c022423

Contents?: true

Size: 383 Bytes

Versions: 4

Compression:

Stored size: 383 Bytes

Contents

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

include Magick

draw = Draw.new

draw.translate 100, 100
draw.circle 100,100, 100, 50
draw.stroke 'blue'
draw.fill 'white'
draw.push
draw.circle 100,100, 100, 50
draw.translate(-100, -100)
draw.fill 'green'
draw.pop
draw.circle 100, 100, 100, 50

b = Image.new(300, 300)

draw.draw b

b.write('draw_pop_push_translate.jpg')

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rmagick4j-0.4.0-java test/eyetests/tests/draw_pop_push_translate.rb
rmagick4j-0.3.9-java test/eyetests/tests/draw_pop_push_translate.rb
rmagick4j-0.3.8 test/eyetests/tests/draw_pop_push_translate.rb
rmagick4j-0.3.7 test/eyetests/tests/draw_pop_push_translate.rb