Sha256: 84afceb65c4aafe0bce256f7b49677b051c53992cc34e4b2a0cbf8387c611f04

Contents?: true

Size: 306 Bytes

Versions: 8

Compression:

Stored size: 306 Bytes

Contents

# encoding: utf-8
#
# Demonstrates simple curve and circle usage
#
require "#{File.dirname(__FILE__)}/../example_helper.rb"

pdf = Prawn::Document.new
pdf.move_to [100,100]
pdf.stroke_curve_to [50,50], :bounds => [[20,90], [90,90]]  
pdf.fill_circle_at [200,200], :radius => 10
pdf.render_file "curves.pdf"

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
prawn-core-0.7.2 examples/graphics/curves.rb
prawn-core-0.7.1 examples/graphics/curves.rb
prawn-layout-0.3.2 vendor/prawn-core/examples/graphics/curves.rb
prawn-core-0.6.3 examples/graphics/curves.rb
prawn-core-0.6.2 examples/graphics/curves.rb
prawn-layout-0.3.1 vendor/prawn-core/examples/graphics/curves.rb
prawn-core-0.6.1 examples/graphics/curves.rb
prawn-core-0.5.1 examples/graphics/curves.rb