Sha256: 1d875d0814755a0dd3bcaffe8d33d96365e12573a407cfa86a55b6970da2a98f
Contents?: true
Size: 705 Bytes
Versions: 3
Compression:
Stored size: 705 Bytes
Contents
require 'squib' # This demonstrates the many ways you can save file to save_png and the like Squib::Deck.new(width: 50, height: 50, cards: 2) do background color: :white text str: (0..16).to_a, font: 'Arial Bold 12' # three digits, e.g. save_three_digits_000.png save_png prefix: 'save_three_digits_', count_format: '%03d' # foo_0.png # bar_1.png save_png prefix: ['foo_', 'bar_'], count_format: '%01d' # foo.png # bar.png save_png prefix: ['foo', 'bar'], count_format: '' # foo_00_bar.png # foo_01_bar.png save_png prefix: 'foo_', suffix: '_bar' # thief.png # thug.png data = csv data: "filename\nthief\nthug" save_png prefix: data.filename, count_format: '' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
squib-0.19.0 | samples/saves/_save_filenames.rb |
squib-0.19.0b | samples/saves/_save_filenames.rb |
squib-0.19.0a | samples/saves/_save_filenames.rb |