pdf background fill

dev
Ansho Rei 2023-12-21 03:07:30 +01:00
parent 1132233747
commit 8269adcee7
2 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,7 @@ module Squib
crop_margin_bottom crop_margin_left crop_margin_right crop_margin_top crop_margin_bottom crop_margin_left crop_margin_right crop_margin_top
rtl trim trim_radius rtl trim trim_radius
range range
fill_color
) )
end end

View File

@ -22,6 +22,8 @@ module Squib
track_progress(range, sheet) do |bar| track_progress(range, sheet) do |bar|
range.each do |i| range.each do |i|
card = @deck.cards[i] card = @deck.cards[i]
cc.set_source_color(sheet.fill_color)
cc.paint
cc.translate(x, y) cc.translate(x, y)
cc.rectangle(sheet.trim, sheet.trim, card_width, card_height) cc.rectangle(sheet.trim, sheet.trim, card_width, card_height)
cc.clip cc.clip