nouns 0.1.0 → 0.1.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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -2
  3. data/lib/nouns/version.rb +1 -2
  4. data/lib/nouns.rb +10 -11
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05742baba4782338899527821c1ec706a34cae1f2258a08799fe048050820b73
4
- data.tar.gz: b7439f154eaf59998771fccdda5bc2ff95cfe3eb979c2e1fcdcb4c194bbc28ad
3
+ metadata.gz: 9c13e52c527c42e4392098f171cc49b906dcf1fe0ac8b942a1965eb35871cf40
4
+ data.tar.gz: 5ae6f35994fc99a6905b68df3b45a93b9c2eb2f828b8b4c5318091f42c2d6748
5
5
  SHA512:
6
- metadata.gz: 11b91d8b8e9519df6d0a0e4632f90e08e581c8893f1ba5df57d0f23cdb2f8e66ba556e3e29314ad8894d2ba969d15bfc5b56720f4ca251d1fb59725cd7371f29
7
- data.tar.gz: dc020161eb68670069ca5f75f17b53dadb59f5afbd916b7c431d12ae0691e73c6d6c0fc886345dabdd44765841496ef328352d97328ece0d04702e9706a636a5
6
+ metadata.gz: fd8803b67ba45064a41aada0d0e6be12f0a7e1c7df518bdb911133e0534f2ccc05d47125d20dbc7d7943360a1768aae6bce2e8f5db2d14856359751060ca56cc
7
+ data.tar.gz: 79aa72d8160c7aa3cae15e53c73c1a25110a58d0f3609ec0d231e18212dee9d7859d60c6bbc5d2685d4929cc0b9a9b90ac0477ef5fdb0af752607c329c196c91
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
+ The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/pixelartexchange/originals) Presents
2
+
1
3
  # Nouns (Pixel Avatars)
2
4
 
3
- nouns - generate your own 32×32 pixel avatar images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
5
+ Yes, you can! Generate your own 32×32 pixel avatar images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
4
6
 
5
7
 
6
8
 
@@ -155,7 +157,20 @@ And so on.
155
157
 
156
158
 
157
159
 
160
+ ## Appendix - All Built-In Spritesheet Attributes (32x32px)
161
+
162
+ See the [spritesheet.csv](https://github.com/pixelartexchange/pixelart/blob/master/nouns/config/spritesheet.csv) dataset for all attribute names (w/ categories).
163
+
164
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/nouns/config/spritesheet.png)
165
+
166
+ (Source: [nouns/spritesheet.png](https://github.com/pixelartexchange/pixelart/blob/master/nouns/config/spritesheet.png))
167
+
168
+
169
+
170
+
158
171
 
159
172
  ## Questions? Comments?
160
173
 
161
- Post them on the [CryptoPunksDev reddit](https://old.reddit.com/r/CryptoPunksDev). Thanks.
174
+ Post them on the [D.I.Y. Punk (Pixel) Art reddit](https://old.reddit.com/r/DIYPunkArt). Thanks.
175
+
176
+
data/lib/nouns/version.rb CHANGED
@@ -1,10 +1,9 @@
1
1
 
2
2
 
3
3
  module Nouns
4
-
5
4
  MAJOR = 0
6
5
  MINOR = 1
7
- PATCH = 0
6
+ PATCH = 1
8
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
8
 
10
9
  def self.version
data/lib/nouns.rb CHANGED
@@ -7,14 +7,6 @@ require 'pixelart/base'
7
7
  require 'nouns/version' # note: let version always go first
8
8
 
9
9
 
10
- ## forward define superclass for image
11
- module Nouns
12
- class Image < Pixelart::Image; end
13
- end
14
-
15
-
16
- ###
17
- ## add convenience pre-configurated generatored with build-in spritesheet (see config)
18
10
 
19
11
  module Nouns
20
12
 
@@ -26,9 +18,16 @@ module Nouns
26
18
  end
27
19
 
28
20
 
29
- class Image
30
- def self.generate( *values, background: nil )
31
- img = Nouns.generator.generate( *values, background: background )
21
+ class Image < Pixelart::Image
22
+
23
+ NAMES = ['noun', 'nouns']
24
+ DEFAULT_ATTRIBUTES = ['Body Grayscale 1',
25
+ 'Checker Bigwalk Rainbow',
26
+ 'Head Beer',
27
+ 'Glasses Square Fullblack']
28
+
29
+ def self.generate( *values )
30
+ img = Nouns.generator.generate( *values )
32
31
  ## note: unwrap inner image before passing on to c'tor (requires ChunkyPNG image for now)
33
32
  new( 32, 32, img.image )
34
33
  end # method Image.generate
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nouns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.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-20 00:00:00.000000000 Z
11
+ date: 2022-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pixelart