samples/shapes/_draw_shapes.rb in squib-0.10.0 vs samples/shapes/_draw_shapes.rb in squib-0.11.0
- old
+ new
@@ -1,17 +1,23 @@
require 'squib'
Squib::Deck.new do
background color: :white
- grid x: 10, y: 10, width: 50, height: 50, stroke_color: '#0066FF', stroke_width: 1.5
- grid x: 10, y: 10, width: 200, height: 200, stroke_color: '#0066FF', stroke_width: 3
+ grid x: 10, y: 10, width: 50, height: 50, stroke_color: '#0066FF', stroke_width: 1.5, angle: 0.1
+ grid x: 10, y: 10, width: 200, height: 200, stroke_color: '#0066FF', stroke_width: 3, angle: 0.1
rect x: 305, y: 105, width: 200, height: 50, dash: '4 2'
rect x: 300, y: 300, width: 400, height: 400,
fill_color: :blue, stroke_color: :red, stroke_width: 50.0,
join: 'bevel'
+
+ rect x: 550, y: 105, width: 100, height: 100,
+ stroke_width: 5, stroke_color: :orange, angle: -0.2
+
+ ellipse x: 675, y: 105, width: 65, height: 100,
+ stroke_width: 5, stroke_color: :orange, angle: -0.2
circle x: 600, y: 600, radius: 75,
fill_color: :gray, stroke_color: :green, stroke_width: 8.0
triangle x1: 50, y1: 50,