Sha256: 5bb7dbe2b560682a72a02e420cdecd1a6ea0a9d791c5b3e26ef939d2d88d12f3

Contents?: true

Size: 605 Bytes

Versions: 4

Compression:

Stored size: 605 Bytes

Contents

require 'squib'

Squib::Deck.new(width: 825, height: 1125, cards: 1) do
  background color: :white

  y = 0
  text color: '#f00', str: '3-hex', x: 50, y: y+=50
  text color: '#f00', str: '3-hex (alpha)', x: 50, y: y+=50
  text color: '#ff0000', str: '6-hex', x: 50, y: y+=50
  text color: '#ff000099', str: '8-hex(alpha) *', x: 50, y: y+=50
  text color: '#ffff00000000', str: '12-hex', x: 50, y: y+=50
  text color: '#ffff000000009999', str: '12-hex (alpha)', x: 50, y: y+=50
  text color: :burnt_orange, str: 'Symbols of constants too', x: 50, y: y+=50

  save_png prefix: 'colors_'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
squib-0.2.0 samples/colors.rb
squib-0.1.0 samples/colors.rb
squib-0.0.6 samples/colors.rb
squib-0.0.5 samples/colors.rb