samples/draw_shapes.rb in squib-0.5.1 vs samples/draw_shapes.rb in squib-0.6.0

- old
+ new

@@ -1,8 +1,9 @@ require 'squib' Squib::Deck.new do + background color: :white 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 @@ -17,8 +18,18 @@ curve x1: 50, y1: 850, cx1: 150, cy1: 700, x2: 625, y2: 900, cx2: 150, cy2: 700, stroke_width: 12.0, stroke_color: :cyan, fill_color: :burgundy + + ellipse x: 50, y: 925, width: 200, height: 100, + stroke_width: 5.0, stroke_color: :cyan, + fill_color: :burgundy + + star x: 300, y: 1000, n: 5, inner_radius: 10, outer_radius: 25, + fill_color: :burgundy, stroke_color: :cyan, stroke_width: 3 + + polygon x: 500, y: 1000, n: 5, radius: 25, angle: Math::PI / 2, + fill_color: :burgundy, stroke_color: :cyan, stroke_width: 2 save_png prefix: 'shape_' end