Sha256: 07cbed1a12cceed77d47c17c018dfc4ef7018d7d1404d58ea04e331f1b8dd244
Contents?: true
Size: 458 Bytes
Versions: 5
Compression:
Stored size: 458 Bytes
Contents
require File.join(File.dirname(__FILE__), 'new_image.rb') include Magick draw = Draw.new draw.stroke = 'blue' draw.stroke_linejoin 'round' 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
5 entries across 5 versions & 1 rubygems