-
Notifications
You must be signed in to change notification settings - Fork 46
Rounded Corners, Frame, Rectangle and Square
shairontoledo edited this page Sep 13, 2010
·
6 revisions
Creates one rectangle or one shape with rounded corners.
Options
- :x and :y – Coordinates for position.
- :corners – Value for rounded corners. Use 0 for straight angle.
- :width and :height – Size of frame
- :content – facade to ShapeContent with same parameters.
- :border – facade to Border with same parameters.
Examples using facade frame method inside Document.
d=RGhost::Document.new d.frame :x => 3, :width => 7, :height => 5, :content => {:fill => false}
d=RGhost::Document.new
d.frame :x => 3, :width => 7, :height => 5, :content => {:color => '#35F6A3' }
d=RGhost::Document.new
d.frame :x => 3, :width => 7, :height => 5, :content => {:color => '#35F6A3' }, :border =>{:width => 5, :dash => [1,3,10]}
d=RGhost::Document.new
d.frame :x => 3, :width => 7, :height => 5, :content => {:color => '#35F6A3' }, :corners => 20
d=RGhost::Document.new
d.frame :x => 3, :width => 7, :height => 5, :content => {:color => :yellow }, :border => {:color => :red, :width => 4}, :corners => 20