originals 0.1.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3867e1b818cebd7b9c563808bff7318af27fd681cefde7d52ed39af67ff43ff
4
- data.tar.gz: e70ff427357f892df830dc343398c34db7640f57eede9951aaf4c8f6bfefc798
3
+ metadata.gz: 46f999cee5a39188cde3f05e7286edeb3b979eb2a9b828c0f35979cc87cd66f9
4
+ data.tar.gz: ecb9a41255aea891551c6eabe3b74f65cff23dadca7f95dd0f89e30c90ce837d
5
5
  SHA512:
6
- metadata.gz: 9f34ca1a5baa49c374bb4022d8d2c83ee8e2ea78543bca1c050f1fb9252804fed021983427310de65b9dff288a1824aec8ed985f6c4ccaaa6ade0bcda687a2ce
7
- data.tar.gz: 1be3dd507e1b33b36f1b7b597892f1cd9638038aeeb8a5af69247ae3156a6cf1fef3467b560f4ad8ca1e853001052cbd186b5dfc1ff43358e0478ec7443e5739
6
+ metadata.gz: 4bfc10e29f89b14f1b45e912abb02365a4662227fc552812f529fa702976a37b020360980378683c689333c48915f6b5e9c27981fb023b6da5ba8ac535596904
7
+ data.tar.gz: c77c2a33f58c69b3eb76bdaf8e425611c9ed2ae333a5e08f4a814c3ec5a69dfb83fb0d5e7efc908f1a92e7672273e184718924220c841d933ddecabe155f9190
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Factory of Modern Originals (FOMO)
1
+ # Factory of Modern Originals (FoMO)
2
2
 
3
- originals - do-it-yourself (DIY) - yes, you can! - fab(criate) your own unique (pixel) artworks w/ text attributes (via built-in spritesheets) incl. 2x/4x/8x zoom for bigger sizes and more
3
+ Do-it-yourself (DIY) - yes, you can! - fab(criate) your own unique (pixel) artworks w/ text attributes (via built-in spritesheets) incl. 2x/4x/8x zoom for bigger sizes and more
4
4
 
5
5
 
6
6
  * home :: [github.com/pixelartexchange/originals](https://github.com/pixelartexchange/originals)
@@ -81,15 +81,15 @@ resulting in:
81
81
 
82
82
 
83
83
  Let's try the `-b/--background` option with two solid colors
84
- (e.g. `#638596` and `#ffbf00`) and with the built-in ukraine and pride (rainbow) flag:
84
+ (e.g. `0x638596` and `0xffbf00` - r/g/b colors in hex) and with the built-in ukraine and pride (rainbow) flag:
85
85
 
86
86
 
87
87
  ```
88
- $ fab --background=638596 punk male3 peak_spike goat horned_rim_glasses
88
+ $ fab --background=0x638596 punk male3 peak_spike goat horned_rim_glasses
89
89
  # -or-
90
- $ fab -b638596 punk male3 peak_spike goat horned_rim_glasses
90
+ $ fab -b0x638596 punk male3 peak_spike goat horned_rim_glasses
91
91
 
92
- $ fab --background=ffbf00 punk male3 peak_spike goat horned_rim_glasses
92
+ $ fab --background=0xffbf00 punk male3 peak_spike goat horned_rim_glasses
93
93
  $ fab --background=ukraine punk male3 peak_spike goat horned_rim_glasses
94
94
  $ fab --background=pride punk male3 peak_spike goat horned_rim_glasses
95
95
  ```
@@ -162,8 +162,8 @@ $ fab marilyn flowers earring smile
162
162
  $ fab marilyn hot_lipstick big_shades
163
163
 
164
164
  # or with some backgrounds
165
- $ fab --background=638596 marilyn hot_lipstick big_shades
166
- $ fab --background=ffbf00 marilyn hot_lipstick big_shades
165
+ $ fab --background=0x638596 marilyn hot_lipstick big_shades
166
+ $ fab --background=0xffbf00 marilyn hot_lipstick big_shades
167
167
  $ fab --background=ukraine marilyn hot_lipstick big_shades
168
168
  $ fab --background=pride marilyn hot_lipstick big_shades
169
169
  ```
@@ -201,8 +201,8 @@ $ fab doge alien headband
201
201
  $ fab doge dark tiara big_shades
202
202
 
203
203
  # -or- with some backgrounds
204
- $ fab --background=638596 doge dark tiara big_shades
205
- $ fab --background=ffbf00 doge dark tiara big_shades
204
+ $ fab --background=0x638596 doge dark tiara big_shades
205
+ $ fab --background=0xffbf00 doge dark tiara big_shades
206
206
  $ fab --background=ukraine doge dark tiara big_shades
207
207
  $ fab --background=pride doge dark tiara big_shades
208
208
  ```
@@ -227,6 +227,140 @@ resulting in:
227
227
 
228
228
 
229
229
 
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
+
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
+
322
+ ### Moonbirds / Owls (42x42)
323
+
324
+
325
+ Let's try some super-rare never-before-seen moonbirds / owls:
326
+
327
+ ```
328
+ $ fab moonbird crescent_golden beak_small_golden eyes_open_golden beanie
329
+ $ fab moonbird tabby_brown beak_small_orange eyes_open_white \
330
+ mcdonalds_red drivethru_onduty mcdonalds_shirt_old_skool
331
+
332
+ # -or- with some backgrounds
333
+ $ fab --background=0x638596 moonbird tabby_brown beak_small_orange eyes_open_white \
334
+ mcdonalds_red drivethru_onduty mcdonalds_shirt_old_skool
335
+ $ fab --background=0xffbf00 moonbird tabby_brown beak_small_orange eyes_open_white \
336
+ mcdonalds_red drivethru_onduty mcdonalds_shirt_old_skool
337
+ $ fab --background=ukraine moonbird tabby_brown beak_small_orange eyes_open_white \
338
+ mcdonalds_red drivethru_onduty mcdonalds_shirt_old_skool
339
+ $ fab --background=pride moonbird tabby_brown beak_small_orange eyes_open_white \
340
+ mcdonalds_red drivethru_onduty mcdonalds_shirt_old_skool
341
+ ```
342
+
343
+ resulting in:
344
+
345
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/moonbird0.png)
346
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/moonbird1.png)
347
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/moonbird1.1.png)
348
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/moonbird1.2.png)
349
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/moonbird1.3.png)
350
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/moonbird1.4.png)
351
+
352
+ 4x (using the `--zoom=4`/`-z4` option)
353
+
354
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/moonbird0@4x.png)
355
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/moonbird1@4x.png)
356
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/moonbird1.1@4x.png)
357
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/moonbird1.2@4x.png)
358
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/moonbird1.3@4x.png)
359
+ ![](https://github.com/pixelartexchange/originals/raw/master/i/moonbird1.4@4x.png)
360
+
361
+
362
+
363
+
230
364
  And so on. Stay tuned for more original artwork series!
231
365
 
232
366
 
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ Hoe.spec 'originals' do
13
13
 
14
14
  self.version = Originals::VERSION
15
15
 
16
- self.summary = "originals - Do-It-Yourself (DIY) Yes, You Can! - Factory of Modern Originals (FOMO) - Fab(criate) Your Own Unique (Pixel) Artworks w/ Text Attributes (Via Built-In Spritesheets) Incl. 2X/4X/8X Zoom for Bigger Sizes And More"
16
+ self.summary = "originals - do-it-yourself (DIY) - yes, you can! - Factory of Modern Originals (FoMO) - fab(criate) your own unique (pixel) artworks w/ text attributes (via built-in spritesheets) incl. 2x/4x/8x zoom for bigger sizes and more"
17
17
  self.description = summary
18
18
 
19
19
  self.urls = { home: 'https://github.com/pixelartexchange/originals' }
@@ -28,6 +28,9 @@ Hoe.spec 'originals' do
28
28
  self.extra_deps = [
29
29
  ['cryptopunks'],
30
30
  ['shibainus'],
31
+ ['moonbirds'],
32
+ ['coolcats'],
33
+ ['nouns'],
31
34
  ]
32
35
 
33
36
  self.licenses = ['Public Domain']
@@ -37,3 +40,4 @@ Hoe.spec 'originals' do
37
40
  }
38
41
 
39
42
  end
43
+
@@ -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 = 0
4
+ MAJOR = 1
5
+ MINOR = 0
6
+ PATCH = 1
8
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
8
 
10
9
  def self.version
data/lib/originals.rb CHANGED
@@ -1,6 +1,9 @@
1
1
  ## 3rd party libs
2
2
  require 'cryptopunks'
3
3
  require 'shibainus'
4
+ require 'moonbirds'
5
+ require 'coolcats'
6
+ require 'nouns'
4
7
 
5
8
 
6
9
 
@@ -45,6 +48,14 @@ def self.fabricate( name, *attributes, background: nil ) ## add fac alias - why
45
48
  'shiba', 'shibas',
46
49
  'shibainu', 'shibainus'].include?( key )
47
50
  Originals.factory.shiba( *attributes, background: background )
51
+ elsif ['bird', 'birds',
52
+ 'moonbird', 'moonbirds',
53
+ 'owl', 'owls'].include?( key )
54
+ Originals.factory.bird( *attributes, background: background )
55
+ elsif ['coolcat', 'coolcats'].include?( key )
56
+ Originals.factory.coolcat( *attributes, background: background )
57
+ elsif ['noun', 'nouns'].include?( key )
58
+ Originals.factory.noun( *attributes, background: background )
48
59
  else
49
60
  puts "!! ERROR; don't know how to fabricate >#{name}<; sorry"
50
61
  exit 1
@@ -100,6 +111,7 @@ end
100
111
 
101
112
 
102
113
 
114
+ ## add method alias doge, shiba_inu etc. - why? why not?
103
115
  def shiba( *attributes, background: nil )
104
116
  ## note: if no attributes passed in
105
117
  ## default to ['Classic']
@@ -111,6 +123,37 @@ def shiba( *attributes, background: nil )
111
123
  end
112
124
 
113
125
 
126
+ ## add method alias moonbird, owl etc. - why? why not?
127
+ def bird( *attributes, background: nil )
128
+ attributes = ['Brave Glitch'] if attributes.size == 0
129
+
130
+ bird = Moonbird::Image.generate( *attributes )
131
+ bird = _background( bird, background ) if background
132
+ bird
133
+ end
134
+
135
+
136
+ def coolcat( *attributes, background: nil )
137
+ cat = Coolcat::Image.generate( *attributes )
138
+ cat = _background( cat, background ) if background
139
+ cat
140
+ end
141
+
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
+
156
+
114
157
  ###
115
158
  # helpers
116
159
 
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.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-05-30 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
@@ -38,6 +38,48 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: moonbirds
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
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'
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'
41
83
  - !ruby/object:Gem::Dependency
42
84
  name: rdoc
43
85
  requirement: !ruby/object:Gem::Requirement
@@ -72,9 +114,9 @@ dependencies:
72
114
  - - "~>"
73
115
  - !ruby/object:Gem::Version
74
116
  version: '3.23'
75
- description: originals - Do-It-Yourself (DIY) Yes, You Can! - Factory of Modern Originals
76
- (FOMO) - Fab(criate) Your Own Unique (Pixel) Artworks w/ Text Attributes (Via Built-In
77
- Spritesheets) Incl. 2X/4X/8X Zoom for Bigger Sizes And More
117
+ description: originals - do-it-yourself (DIY) - yes, you can! - Factory of Modern
118
+ Originals (FoMO) - fab(criate) your own unique (pixel) artworks w/ text attributes
119
+ (via built-in spritesheets) incl. 2x/4x/8x zoom for bigger sizes and more
78
120
  email: wwwmake@googlegroups.com
79
121
  executables:
80
122
  - fab
@@ -120,7 +162,7 @@ requirements: []
120
162
  rubygems_version: 3.3.7
121
163
  signing_key:
122
164
  specification_version: 4
123
- summary: originals - Do-It-Yourself (DIY) Yes, You Can! - Factory of Modern Originals
124
- (FOMO) - Fab(criate) Your Own Unique (Pixel) Artworks w/ Text Attributes (Via Built-In
125
- Spritesheets) Incl. 2X/4X/8X Zoom for Bigger Sizes And More
165
+ summary: originals - do-it-yourself (DIY) - yes, you can! - Factory of Modern Originals
166
+ (FoMO) - fab(criate) your own unique (pixel) artworks w/ text attributes (via built-in
167
+ spritesheets) incl. 2x/4x/8x zoom for bigger sizes and more
126
168
  test_files: []