samples and docs for placeholders

This commit is contained in:
Andy Meneely
2021-10-13 00:18:27 -04:00
parent 9e49b4053a
commit d169f9f90f
6 changed files with 101 additions and 3 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
*.png
!*_expected.png
!ball.png
!grit.png
!sprites.png
!with-alpha.png
!_images_00_expected.png
!shiny-purse.png
!angler-fish.png
*.png
+6
View File
@@ -24,6 +24,12 @@ Squib::Deck.new(width: 100, height: 100, cards: 4) do
files = %w(angler-fish.png does-not-exist.png does-not-exist.png does-not-exist.png)
placeholders = %w(grit.png does-not-exist.png grit.png )
png file: files, placeholder: placeholders
# text embeds can have placeholders too
text(str: 'A', color: :red) do |embed|
embed.png key: 'A', file: files, placeholder: placeholders, width: 30, height: 30
end
save_sheet columns: 1, prefix: 'multi_placeholder_sheet_'
end