Sha256: 2ce56763f9f37fe54cd68b01f7140c92acfd5a36914742dbb6fd60fa9a8c855b

Contents?: true

Size: 354 Bytes

Versions: 10

Compression:

Stored size: 354 Bytes

Contents

# encoding: utf-8

$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
require "prawn"

pdf = Prawn::Document.new
                        
pdf.fill_color "ff0000"
pdf.fill_polygon [100, 250], [200, 300], [300, 250],
                 [300, 150], [200, 100], [100, 150]            
                  
pdf.render_file "hexagon.pdf"
              

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
fullcirclegroup-fullcirclegroup-prawn-0.2.99.2 examples/hexagon.rb
fullcirclegroup-prawn-0.2.99.3 examples/hexagon.rb
satoko-prawn-0.2.99.6 examples/hexagon.rb
prawn-0.1.0 examples/hexagon.rb
prawn-0.1.2 examples/hexagon.rb
prawn-0.1.1 examples/hexagon.rb
prawn-0.2.1 examples/hexagon.rb
prawn-0.2.2 examples/hexagon.rb
prawn-0.2.0 examples/hexagon.rb
prawn-0.2.3 examples/hexagon.rb