originals 1.0.0 → 1.0.1

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: 5adec9529ef943fcc527eb54eb44390d42624d289781cc04c487d36dd3d8ce38
4
- data.tar.gz: 3fc3c527e769b09bba90502ba308e599234b2da5543b905bbc7ef66704fdfa14
3
+ metadata.gz: 46f999cee5a39188cde3f05e7286edeb3b979eb2a9b828c0f35979cc87cd66f9
4
+ data.tar.gz: ecb9a41255aea891551c6eabe3b74f65cff23dadca7f95dd0f89e30c90ce837d
5
5
  SHA512:
6
- metadata.gz: a8b5008a97f95b1817df036dcec56a200c1c24f1f01c52000719f04ae18261c1cdcf8f7b8793bfc62827f038f66246ea9aca1612f676d402fbd9add14d212826
7
- data.tar.gz: 5f6fc0225659f145f7e535a46bf135cb91aca66906527c4774dc08fbb3ab20d75c7ff56486dbb29bdfbe819a76aa83063d3e6801b3048d0e37cc2d7ccba5da59
6
+ metadata.gz: 4bfc10e29f89b14f1b45e912abb02365a4662227fc552812f529fa702976a37b020360980378683c689333c48915f6b5e9c27981fb023b6da5ba8ac535596904
7
+ data.tar.gz: c77c2a33f58c69b3eb76bdaf8e425611c9ed2ae333a5e08f4a814c3ec5a69dfb83fb0d5e7efc908f1a92e7672273e184718924220c841d933ddecabe155f9190
data/README.md CHANGED
@@ -269,6 +269,56 @@ resulting in:
269
269
 
270
270
 
271
271
 
272
+ ### Nouns (32x32)
273
+
274
+
275
+ Let's try some noun (pixel avatars):
276
+
277
+
278
+ ```
279
+ $ fab noun body_grayscale1 checker_bigwalk_rainbow \
280
+ head_beer glasses_square_fullblack
281
+ $ fab noun body_gradient_pride bling_love \
282
+ head_bubblegum glasses_square_yellow_saturated
283
+ $ fab noun body_red txt_lol \
284
+ head_weed glasses_square_black_rgb
285
+
286
+ # -or- with some backgrounds
287
+ $ fab --background=0x638596 noun body_red txt_lol \
288
+ head_weed glasses_square_black_rgb
289
+ $ fab --background=0xffbf00 noun body_red txt_lol \
290
+ head_weed glasses_square_black_rgb
291
+ $ fab --background=ukraine noun body_red txt_lol \
292
+ head_weed glasses_square_black_rgb
293
+ $ fab --background=pride noun body_red txt_lol \
294
+ head_weed glasses_square_black_rgb
295
+ ```
296
+
297
+ resulting in:
298
+
299
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun0.png)
300
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun1.png)
301
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun2.png)
302
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun2.1.png)
303
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun2.2.png)
304
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun2.3.png)
305
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun2.4.png)
306
+
307
+ 4x (using the `--zoom=4`/`-z4` option)
308
+
309
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun0@4x.png)
310
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun1@4x.png)
311
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun2@4x.png)
312
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun2.1@4x.png)
313
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun2.2@4x.png)
314
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun2.3@4x.png)
315
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/noun2.4@4x.png)
316
+
317
+
318
+
319
+
320
+
321
+
272
322
  ### Moonbirds / Owls (42x42)
273
323
 
274
324
 
data/Rakefile CHANGED
@@ -30,6 +30,7 @@ Hoe.spec 'originals' do
30
30
  ['shibainus'],
31
31
  ['moonbirds'],
32
32
  ['coolcats'],
33
+ ['nouns'],
33
34
  ]
34
35
 
35
36
  self.licenses = ['Public Domain']
@@ -39,3 +40,4 @@ Hoe.spec 'originals' do
39
40
  }
40
41
 
41
42
  end
43
+
@@ -3,7 +3,7 @@
3
3
  module Originals
4
4
  MAJOR = 1
5
5
  MINOR = 0
6
- PATCH = 0
6
+ PATCH = 1
7
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
8
8
 
9
9
  def self.version
data/lib/originals.rb CHANGED
@@ -3,6 +3,7 @@ require 'cryptopunks'
3
3
  require 'shibainus'
4
4
  require 'moonbirds'
5
5
  require 'coolcats'
6
+ require 'nouns'
6
7
 
7
8
 
8
9
 
@@ -53,6 +54,8 @@ def self.fabricate( name, *attributes, background: nil ) ## add fac alias - why
53
54
  Originals.factory.bird( *attributes, background: background )
54
55
  elsif ['coolcat', 'coolcats'].include?( key )
55
56
  Originals.factory.coolcat( *attributes, background: background )
57
+ elsif ['noun', 'nouns'].include?( key )
58
+ Originals.factory.noun( *attributes, background: background )
56
59
  else
57
60
  puts "!! ERROR; don't know how to fabricate >#{name}<; sorry"
58
61
  exit 1
@@ -137,6 +140,19 @@ def coolcat( *attributes, background: nil )
137
140
  end
138
141
 
139
142
 
143
+ def noun( *attributes, background: nil )
144
+ attributes = ['Body Grayscale 1',
145
+ 'Checker Bigwalk Rainbow',
146
+ 'Head Beer',
147
+ 'Glasses Square Fullblack'] if attributes.size == 0
148
+
149
+ noun = Noun::Image.generate( *attributes )
150
+ noun = _background( noun, background ) if background
151
+ noun
152
+ end
153
+
154
+
155
+
140
156
 
141
157
  ###
142
158
  # helpers
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: 1.0.0
4
+ version: 1.0.1
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-06-01 00:00:00.000000000 Z
11
+ date: 2022-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cryptopunks
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: nouns
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rdoc
71
85
  requirement: !ruby/object:Gem::Requirement