woof this was a big change but ok

Add cell_px everywhere we have dpi

This might be smelly. Sorry, Mr. Fowler and Prof. Frens...
This commit is contained in:
Andy Meneely
2020-11-17 23:40:15 -05:00
parent 24c9fbd0bf
commit 93a0d56eda
20 changed files with 100 additions and 70 deletions
+8
View File
@@ -43,3 +43,11 @@ Squib::Deck.new(width: '1.5in', height: '1.5in') do
save_png prefix: 'cells_'
end
# You can customize this with the cell_px configuration option
Squib::Deck.new(width: 100, height: 100, config: 'cell_config.yml') do
background color: :white
rect x: '1c', y: '1c', width: '1c', height: '1c', fill_color: :purple
save_png prefix: 'custom_cell_'
end
+2
View File
@@ -0,0 +1,2 @@
# Defaults to 37.5, but we'll go with 50 for this example
cell_px: 50