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 +4 -4
- data/README.md +50 -0
- data/Rakefile +2 -0
- data/lib/originals/version.rb +1 -1
- data/lib/originals.rb +16 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46f999cee5a39188cde3f05e7286edeb3b979eb2a9b828c0f35979cc87cd66f9
|
4
|
+
data.tar.gz: ecb9a41255aea891551c6eabe3b74f65cff23dadca7f95dd0f89e30c90ce837d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+

|
300
|
+

|
301
|
+

|
302
|
+

|
303
|
+

|
304
|
+

|
305
|
+

|
306
|
+
|
307
|
+
4x (using the `--zoom=4`/`-z4` option)
|
308
|
+
|
309
|
+

|
310
|
+

|
311
|
+

|
312
|
+

|
313
|
+

|
314
|
+

|
315
|
+

|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
272
322
|
### Moonbirds / Owls (42x42)
|
273
323
|
|
274
324
|
|
data/Rakefile
CHANGED
data/lib/originals/version.rb
CHANGED
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.
|
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-
|
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
|