Sha256: 2dd3753c8476545dfe733aeed499db1dcf41441a2003e8dd0cfb625e5136fc88

Contents?: true

Size: 307 Bytes

Versions: 13

Compression:

Stored size: 307 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 => [[60,90], [60, 90]]  
pdf.fill_circle_at [200,200], :radius => 10
pdf.render_file "curves.pdf"

Version data entries

13 entries across 13 versions & 6 rubygems

Version Path
piglop-prawn-0.10.2.3 examples/graphics/curves.rb
piglop-prawn-0.10.2.2 examples/graphics/curves.rb
piglop-prawn-0.10.2.1 examples/graphics/curves.rb
prawn-0.11.1.pre examples/graphics/curves.rb
goodwill-prawn-edge-0.10.0 examples/graphics/curves.rb
alphasights-prawn-0.10.4 examples/graphics/curves.rb
alphasights-prawn-0.10.3 examples/graphics/curves.rb
alphasights-prawn-0.10.2 examples/graphics/curves.rb
alphasights-prawn-0.10.1 examples/graphics/curves.rb
alphasights-prawn-0.10.0 examples/graphics/curves.rb
prawn-core-0.8.4 examples/graphics/curves.rb
prawn-graph-0.0.2 vendor/prawn-core/examples/graphics/curves.rb
prawn-graph-0.0.1 vendor/prawn-core/examples/graphics/curves.rb