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.
- checksums.yaml +4 -4
- data/README.md +17 -2
- data/lib/nouns/version.rb +1 -2
- data/lib/nouns.rb +10 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c13e52c527c42e4392098f171cc49b906dcf1fe0ac8b942a1965eb35871cf40
|
4
|
+
data.tar.gz: 5ae6f35994fc99a6905b68df3b45a93b9c2eb2f828b8b4c5318091f42c2d6748
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
+

|
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 [
|
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
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
|
-
|
31
|
-
|
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.
|
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-
|
11
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pixelart
|