Sha256: a5c3cda5007f0c02ae8e2a71de6c88667f354271e675a375b8528a40266162ce
Contents?: true
Size: 529 Bytes
Versions: 2
Compression:
Stored size: 529 Bytes
Contents
# frozen_string_literal: true # To draw a rectangle, just provide the upper-left corner, width and height to # the <code>rectangle</code> method. # # There's also <code>rounded_rectangle</code>. Just provide an additional radius # value for the rounded corners. require_relative '../example_helper' filename = File.basename(__FILE__).gsub('.rb', '.pdf') Prawn::ManualBuilder::Example.generate(filename) do stroke_axis stroke do rectangle [100, 300], 100, 200 rounded_rectangle [300, 300], 100, 200, 20 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prawn-2.4.0 | manual/graphics/rectangle.rb |
prawn-2.3.0 | manual/graphics/rectangle.rb |