Sha256: 2b18897aebbf655fc9eada4fdca887418dc653c97ad25241b2322ab4f5370e2c

Contents?: true

Size: 421 Bytes

Versions: 6

Compression:

Stored size: 421 Bytes

Contents

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

include Magick

draw = Draw.new

draw.stroke = 'LightCyan2'
draw.fill = 'LightCyan2'
draw.affine(2,0,0,3,0,0) # Scale 2x 3y
angle = 15*Math::PI/180
draw.affine(Math.cos(angle),-Math.sin(angle),Math.sin(angle),Math.cos(angle),0,0)

draw.circle(50,50, 50,70)

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

draw.draw b

b.write('draw_circle_affine.jpg')

Version data entries

6 entries across 6 versions & 1 rubygems

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