Adding circle and triangle, and example

Closes #7
This commit is contained in:
Andy Meneely
2014-07-29 16:10:49 -04:00
parent e4d1900965
commit 10b0e1811e
4 changed files with 60 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
require 'squib'
Squib::Deck.new do
rect x: 300, y: 300, width: 400, height: 400,
fill_color: :blue, stroke_color: :red, stroke_width: 50.0
circle x: 600, y: 600, radius: 75,
fill_color: :gray, stroke_color: :green, stroke_width: 8.0
triangle x1: 50, y1: 50,
x2: 150, y2: 150,
x3: 75, y3: 250
save_png prefix: 'shape_'
end