From e0fbc78efa2c46caf8e623f8449ecdf64db5f516 Mon Sep 17 00:00:00 2001 From: Andy Meneely Date: Fri, 22 Oct 2021 23:19:33 -0400 Subject: [PATCH] bring back regression test --- samples/saves/_saves.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/samples/saves/_saves.rb b/samples/saves/_saves.rb index 82b3d8e..97c50bf 100644 --- a/samples/saves/_saves.rb +++ b/samples/saves/_saves.rb @@ -60,3 +60,16 @@ Squib::Deck.new(width: 100, height: 100, cards: 3) do # Buggy behavior was to revert to 1 row and not respect the rows arg. save_sheet prefix: 'save_sheet_bug332_', rows: 2, columns: 4 end + +# Allow rotating +Squib::Deck.new(width: 100, height: 50, cards: 8) do + background color: :white + rect x: 10, y: 10, width: 80, height: 30 + rect x: 5, y: 5, width: 90, height: 40, stroke_width: 5, stroke_color: :blue + text y: 2, str: 0..7, font: 'Open Sans Bold 8', align: :center, width: 100 + save_sheet prefix: 'save_sheet_unrotated_', rows: 2, columns: 3 + save_sheet prefix: 'save_sheet_custom_rotate_', rows: 2, columns: 3, rotate: [:clockwise, :counterclockwise] * 4 + save_sheet prefix: 'save_sheet_rotated_', rows: 2, columns: 3, rotate: true + save_sheet prefix: 'save_sheet_rotated_trimmed_', rows: 2, columns: 3, rotate: true, trim: 5 + save_sheet prefix: 'save_sheet_rotated_trimmed_rtl_', rows: 2, columns: 3, rotate: true, trim: 5, rtl: true +end