Sha256: 8c854c0dfdfff6b81faf5d34778920c48d80fa49073ca14086fe9586f3edb834
Contents?: true
Size: 442 Bytes
Versions: 5
Compression:
Stored size: 442 Bytes
Contents
# encoding: utf-8 # # Basic polygon drawing example. See also: hexagon.rb # $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib')) require "prawn" pdf = Prawn::Document.new 10.times do |i| pdf.stroke_polygon [ 50 + i*25, 50 + i*25], [100 + i*25, 50 + i*25], [100 + i*25, 100 + i*25] pdf.stroke_rectangle [0,600], 5*i, 10*i end pdf.render_file "pretty_polygons.pdf"
Version data entries
5 entries across 5 versions & 2 rubygems