originals 0.1.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f68045c61f5f5a49dc7b1d9a6f50de52a56d1e58850c585e0c2499a2fe190331
4
- data.tar.gz: f95ad22a08ff6cff84f77234db3b85e939d574d316ab97fca554874a4843ee6e
3
+ metadata.gz: 5adec9529ef943fcc527eb54eb44390d42624d289781cc04c487d36dd3d8ce38
4
+ data.tar.gz: 3fc3c527e769b09bba90502ba308e599234b2da5543b905bbc7ef66704fdfa14
5
5
  SHA512:
6
- metadata.gz: e16142514a64007dc6f7b79eeb234f426d1b8d07c72957d24ba4708ebc9b3a949a9f229f3c058c43a0ce76dc8a13add5d46698a5a2f8aeffa275be3fb74ab52b
7
- data.tar.gz: 1e7e0b7f26c10d8abdf6cef5d0119639d93eb6e74e39bfe7b1b827314e4380235e0f41e8ee0e658e2fb225afbb25ef34742dc4a7f97dddd57b1e9aeeadaafd43
6
+ metadata.gz: a8b5008a97f95b1817df036dcec56a200c1c24f1f01c52000719f04ae18261c1cdcf8f7b8793bfc62827f038f66246ea9aca1612f676d402fbd9add14d212826
7
+ data.tar.gz: 5f6fc0225659f145f7e535a46bf135cb91aca66906527c4774dc08fbb3ab20d75c7ff56486dbb29bdfbe819a76aa83063d3e6801b3048d0e37cc2d7ccba5da59
data/README.md CHANGED
@@ -228,6 +228,47 @@ resulting in:
228
228
 
229
229
 
230
230
 
231
+ ### Coolcats (24x24)
232
+
233
+
234
+ Let's try some coolcats:
235
+
236
+
237
+ ```
238
+ $ fab coolcat ditto beret_red
239
+ $ fab coolcat unamused
240
+ $ fab coolcat tv_head_grey tv_face_no_signal
241
+
242
+ # -or- with some backgrounds
243
+ $ fab --background=0x638596 coolcat tv_head_grey tv_face_no_signal
244
+ $ fab --background=0xffbf00 coolcat tv_head_grey tv_face_no_signal
245
+ $ fab --background=ukraine coolcat tv_head_grey tv_face_no_signal
246
+ $ fab --background=pride coolcat tv_head_grey tv_face_no_signal
247
+ ```
248
+
249
+ resulting in:
250
+
251
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat0.png)
252
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat1.png)
253
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat2.png)
254
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat2.1.png)
255
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat2.2.png)
256
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat2.3.png)
257
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat2.4.png)
258
+
259
+ 4x (using the `--zoom=4`/`-z4` option)
260
+
261
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat0@4x.png)
262
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat1@4x.png)
263
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat2@4x.png)
264
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat2.1@4x.png)
265
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat2.2@4x.png)
266
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat2.3@4x.png)
267
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/coolcat2.4@4x.png)
268
+
269
+
270
+
271
+
231
272
  ### Moonbirds / Owls (42x42)
232
273
 
233
274
 
data/Rakefile CHANGED
@@ -29,6 +29,7 @@ Hoe.spec 'originals' do
29
29
  ['cryptopunks'],
30
30
  ['shibainus'],
31
31
  ['moonbirds'],
32
+ ['coolcats'],
32
33
  ]
33
34
 
34
35
  self.licenses = ['Public Domain']
@@ -14,10 +14,15 @@ class Tool
14
14
  end
15
15
 
16
16
  opts.on("--background STRING", "--bg STRING", "-b", String,
17
- "Background (default: transparent)") do |str|
17
+ "Background (default: transparent|0x0)") do |str|
18
18
  options[ :background] = str
19
19
  end
20
20
 
21
+ opts.on("--name STRING", "-n", String,
22
+ "Base name (default: punk|phunk|marilyn|etc.)") do |str|
23
+ options[ :name] = str
24
+ end
25
+
21
26
  opts.on("--id NUM", "-i", Integer,
22
27
  "Unique identifier (default: none)") do |str|
23
28
  options[ :id] = str
@@ -53,7 +58,13 @@ class Tool
53
58
  background: options[ :background] )
54
59
 
55
60
 
56
- basename = "#{key}#{options[:id]}"
61
+
62
+ basename = if options[:name]
63
+ "#{options[:name]}#{options[:id]}"
64
+ else
65
+ "#{key}#{options[:id]}"
66
+ end
67
+
57
68
 
58
69
  path = if options[:zoom]
59
70
  img = img.zoom( options[:zoom] )
@@ -1,10 +1,9 @@
1
1
 
2
2
 
3
3
  module Originals
4
-
5
- MAJOR = 0
6
- MINOR = 1
7
- PATCH = 1
4
+ MAJOR = 1
5
+ MINOR = 0
6
+ PATCH = 0
8
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
8
 
10
9
  def self.version
data/lib/originals.rb CHANGED
@@ -2,6 +2,7 @@
2
2
  require 'cryptopunks'
3
3
  require 'shibainus'
4
4
  require 'moonbirds'
5
+ require 'coolcats'
5
6
 
6
7
 
7
8
 
@@ -50,6 +51,8 @@ def self.fabricate( name, *attributes, background: nil ) ## add fac alias - why
50
51
  'moonbird', 'moonbirds',
51
52
  'owl', 'owls'].include?( key )
52
53
  Originals.factory.bird( *attributes, background: background )
54
+ elsif ['coolcat', 'coolcats'].include?( key )
55
+ Originals.factory.coolcat( *attributes, background: background )
53
56
  else
54
57
  puts "!! ERROR; don't know how to fabricate >#{name}<; sorry"
55
58
  exit 1
@@ -117,7 +120,7 @@ def shiba( *attributes, background: nil )
117
120
  end
118
121
 
119
122
 
120
- ## add method alis moonbird, owl etc. - why? why not?
123
+ ## add method alias moonbird, owl etc. - why? why not?
121
124
  def bird( *attributes, background: nil )
122
125
  attributes = ['Brave Glitch'] if attributes.size == 0
123
126
 
@@ -127,6 +130,12 @@ def bird( *attributes, background: nil )
127
130
  end
128
131
 
129
132
 
133
+ def coolcat( *attributes, background: nil )
134
+ cat = Coolcat::Image.generate( *attributes )
135
+ cat = _background( cat, background ) if background
136
+ cat
137
+ end
138
+
130
139
 
131
140
 
132
141
  ###
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: originals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-31 00:00:00.000000000 Z
11
+ date: 2022-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cryptopunks
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: coolcats
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rdoc
57
71
  requirement: !ruby/object:Gem::Requirement