pdf background fill
parent
1132233747
commit
8269adcee7
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue