samples/draw_shapes.rb in squib-0.0.4 vs samples/draw_shapes.rb in squib-0.0.5
- old
+ new
@@ -1,19 +1,19 @@
require 'squib'
-Squib::Deck.new do
- rect x: 300, y: 300, width: 400, height: 400,
+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
+ fill_color: :gray, stroke_color: :green, stroke_width: 8.0
- triangle x1: 50, y1: 50,
- x2: 150, y2: 150,
+ triangle x1: 50, y1: 50,
+ x2: 150, y2: 150,
x3: 75, y3: 250
- line x1: 50, y1: 550,
+ line x1: 50, y1: 550,
x2: 150, y2: 650,
- stroke_width: 25.0
+ stroke_width: 25.0
save_png prefix: 'shape_'
-end
\ No newline at end of file
+end