Sha256: b36ecf731785d185454aa170dad5470a5738c90a58fcf0b734fd7da1e5f33a71

Contents?: true

Size: 338 Bytes

Versions: 5

Compression:

Stored size: 338 Bytes

Contents

# encoding: utf-8
#
# Demonstrates simple curve and circle usage
#
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
require "prawn"

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

5 entries across 5 versions & 2 rubygems

Version Path
kavu-prawn-core-0.4.100 examples/graphics/curves.rb
kavu-prawn-core-0.4.99 examples/graphics/curves.rb
prawn-0.3.0 examples/graphics/curves.rb
prawn-0.4.1 examples/graphics/curves.rb
prawn-0.4.0 examples/graphics/curves.rb