diff --git a/2022/05-gencant/deck.rb b/2022/05-gencant/deck.rb index 14395ef..43d4be9 100644 --- a/2022/05-gencant/deck.rb +++ b/2022/05-gencant/deck.rb @@ -22,13 +22,14 @@ end Squib::Deck.new(cards: 6, width: '3in', height: '4in') do rect - png x: '0.5in', y: '0.5in', width: '2.0in', height: '2.0in', file: 'images/hexgrid.png' + svg x: '0.5in', y: '0.5in', width: '2.0in', height: '2.0in', file: 'images/hexgrid.svg' text x: '0.5in', y: '2.75in', width: '2in', height: '0.5in', str: 'Scoring', align: :center (0..6).each do |i| rect x: inches(0.5) + i * inches(2.0/7.0), y: '3.0in', width: '0.25in', height: '0.25in' rect x: inches(0.5) + i * inches(2.0/7.0), y: '3.25in', width: '0.25in', height: '0.25in' end + star x: inches(0.5) + 6 * inches(2.0/7.0) + inches(0.125), y: '3.125in', outer_radius: '0.125in', inner_radius: inches(1.0/16.0), angle: '270deg' save_pdf trim: 37.5, file: 'player.pdf' end \ No newline at end of file diff --git a/2022/05-gencant/images/hexgrid.png b/2022/05-gencant/images/hexgrid.png deleted file mode 100644 index 98e893d..0000000 Binary files a/2022/05-gencant/images/hexgrid.png and /dev/null differ diff --git a/2022/05-gencant/images/hexgrid.svg b/2022/05-gencant/images/hexgrid.svg new file mode 100644 index 0000000..60ff919 --- /dev/null +++ b/2022/05-gencant/images/hexgrid.svg @@ -0,0 +1 @@ + \ No newline at end of file