punks 0.2.1 → 0.3.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/Manifest.txt +3 -0
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/config/saudis-24x24.csv +79 -0
- data/config/saudis-24x24.png +0 -0
- data/lib/punks/generator.rb +12 -4
- data/lib/punks/saudis.rb +48 -0
- data/lib/punks/version.rb +1 -1
- data/lib/punks.rb +5 -0
- metadata +11 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef4999991a9be18190921b940219f841b1cacff54a99026d1404f3f43c65c558
|
4
|
+
data.tar.gz: dcfc409fc2997411253a3daa54a0ebc9a9bce407b4eeeef8c460f618df8178cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8708e31b9a9420537efca32ff68a047306af9320a3e0cf5ccf7a94dc39bc06e9ba4e42358775830ebaa4ba1e996d0d242e142867093e89fb5a072a3ce517844f
|
7
|
+
data.tar.gz: 48f8ec551995bd57705fb87deceb7adb7ef11648462a645690e9b521ee646cb940d89d390e4583f91f388403d3183db50773b74c5a907c047e119eb0f3bc2901
|
data/Manifest.txt
CHANGED
@@ -7,6 +7,8 @@ config/punks-24x24.csv
|
|
7
7
|
config/punks-24x24.png
|
8
8
|
config/punks_xl-32x32.csv
|
9
9
|
config/punks_xl-32x32.png
|
10
|
+
config/saudis-24x24.csv
|
11
|
+
config/saudis-24x24.png
|
10
12
|
lib/punks.rb
|
11
13
|
lib/punks/generator.rb
|
12
14
|
lib/punks/marilyns.rb
|
@@ -14,4 +16,5 @@ lib/punks/philips.rb
|
|
14
16
|
lib/punks/phunks.rb
|
15
17
|
lib/punks/punks.rb
|
16
18
|
lib/punks/punks_xl.rb
|
19
|
+
lib/punks/saudis.rb
|
17
20
|
lib/punks/version.rb
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/pixelartexchange/originals) Presents
|
2
2
|
|
3
|
-
# Punks, Phunks, Philips, Marilyns & More (Pixel Characters / Avatars)
|
3
|
+
# Punks, Phunks, Philips, Marilyns, Saudis/Sheiks & More (Pixel Characters / Avatars)
|
4
4
|
|
5
|
-
Yes, you can! Generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn & more (pixel) avatar / character 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 24×24 (or 32×32) punk, phunk, philip, marilyn, saudi/sheik & more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
|
6
6
|
|
7
7
|
|
8
8
|
|
data/Rakefile
CHANGED
@@ -13,7 +13,7 @@ Hoe.spec 'punks' do
|
|
13
13
|
|
14
14
|
self.version = Pixelart::Module::Punks::VERSION
|
15
15
|
|
16
|
-
self.summary = "punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn 'n' more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more"
|
16
|
+
self.summary = "punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn, saudi/sheik 'n' more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheet); 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/cryptopunksnotdead/cryptopunks' }
|
@@ -0,0 +1,79 @@
|
|
1
|
+
id, category, name, more_names
|
2
|
+
0, , male 01,
|
3
|
+
1, , male 02,
|
4
|
+
2, , male 03,
|
5
|
+
3, , male 04,
|
6
|
+
4, , male 05,
|
7
|
+
5, , male 06,
|
8
|
+
6, , male 07,
|
9
|
+
7, , male 08,
|
10
|
+
8, , male 09,
|
11
|
+
9, , male 10,
|
12
|
+
10, , light 1,
|
13
|
+
11, , light 2,
|
14
|
+
12, , medium 1,
|
15
|
+
13, , medium 2,
|
16
|
+
14, , darker 1,
|
17
|
+
15, , darker 2,
|
18
|
+
16, , dark 1,
|
19
|
+
17, , dark 2,
|
20
|
+
18, , white shemagh,
|
21
|
+
19, , white shemagh agal,
|
22
|
+
20, , white shemagh gold agal,
|
23
|
+
21, , white shemagh stylish gold agal,
|
24
|
+
22, , white shemagh crown,
|
25
|
+
23, , brown shemagh agal,
|
26
|
+
24, , brown shemagh crown,
|
27
|
+
25, , red shemagh,
|
28
|
+
26, , red shemagh agal,
|
29
|
+
27, , red shemagh crown,
|
30
|
+
28, , messy white beard,
|
31
|
+
29, , short white beard,
|
32
|
+
30, , normal white beard,
|
33
|
+
31, , luxurious white beard,
|
34
|
+
32, , short grey beard,
|
35
|
+
33, , messy brown beard,
|
36
|
+
34, , normal brown beard,
|
37
|
+
35, , luxurious brown beard,
|
38
|
+
36, , shadow beard,
|
39
|
+
37, , shadow beard mustache,
|
40
|
+
38, , light beard,
|
41
|
+
39, , mustache,
|
42
|
+
40, , stylish mustache,
|
43
|
+
41, , sideburns,
|
44
|
+
42, , sideburns mustache,
|
45
|
+
43, , normal beard,
|
46
|
+
44, , normal brown beard mustache,
|
47
|
+
45, , luxurious beard,
|
48
|
+
46, , horn rimmed glasses,
|
49
|
+
47, , rimless glasses,
|
50
|
+
48, , nerd glasses,
|
51
|
+
49, , stylish nerd glasses,
|
52
|
+
50, , classic shades,
|
53
|
+
51, , classic green shades,
|
54
|
+
52, , classic gold shades,
|
55
|
+
53, , regular pixel shades,
|
56
|
+
54, , regular reflective shades,
|
57
|
+
55, , big green shades,
|
58
|
+
56, , big pixel shades,
|
59
|
+
57, , big purple shades,
|
60
|
+
58, , big shades,
|
61
|
+
59, , small shades,
|
62
|
+
60, , regular shades,
|
63
|
+
61, , round shades,
|
64
|
+
62, , big round shades,
|
65
|
+
63, , square reflective shades,
|
66
|
+
64, , square shades,
|
67
|
+
65, , 3d glasses,
|
68
|
+
66, , vr,
|
69
|
+
67, , laser eyes,
|
70
|
+
68, , max bidding,
|
71
|
+
69, , cigarette,
|
72
|
+
70, , shadowless cigarette,
|
73
|
+
71, , miswak,
|
74
|
+
72, , vape,
|
75
|
+
73, , shadowless vape,
|
76
|
+
74, , cigar,
|
77
|
+
75, , pearwood pipe,
|
78
|
+
76, , rosewood pipe,
|
79
|
+
77, , bubble gum,
|
Binary file
|
data/lib/punks/generator.rb
CHANGED
@@ -266,10 +266,18 @@ module Punk
|
|
266
266
|
|
267
267
|
## note: attribute lookup requires gender from archetype!!!!
|
268
268
|
if archetype.is_a?( Pixelart::Image )
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
269
|
+
if archetype_name.is_a?( String ) && archetype_name.downcase.index( 'female' )
|
270
|
+
## quick & dirty hack for now
|
271
|
+
## if name incl. female (automagically) switch to f(emale)/s(mall)
|
272
|
+
attribute_gender = 'f'
|
273
|
+
attribute_size = 's'
|
274
|
+
else
|
275
|
+
### for now assume (support only)
|
276
|
+
## large & male (l/m) for "inline/patch" archetypes - why? why not?
|
277
|
+
## change male to unisex - why? why not? (note: for now unisex is not doing a backup lookup using male/female)
|
278
|
+
attribute_gender = 'm'
|
279
|
+
attribute_size = 'l'
|
280
|
+
end
|
273
281
|
else
|
274
282
|
attribute_gender = archetype.gender
|
275
283
|
attribute_size = archetype.size
|
data/lib/punks/saudis.rb
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
module Saudi
|
2
|
+
|
3
|
+
class Spritesheet
|
4
|
+
def self.builtin
|
5
|
+
@builtin ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Punks.root}/config/saudis-24x24.png",
|
6
|
+
"#{Pixelart::Module::Punks.root}/config/saudis-24x24.csv",
|
7
|
+
width: 24,
|
8
|
+
height: 24 )
|
9
|
+
end
|
10
|
+
|
11
|
+
## note: for now class used for "namespace" only
|
12
|
+
def self.find_by( name: ) ## return archetype/attribute image by name
|
13
|
+
builtin.find_by( name: name )
|
14
|
+
end
|
15
|
+
end # class Spritesheet
|
16
|
+
## add convenience (alternate spelling) alias - why? why not?
|
17
|
+
SpriteSheet = Spritesheet
|
18
|
+
Sheet = Spritesheet
|
19
|
+
Sprite = Spritesheet
|
20
|
+
|
21
|
+
|
22
|
+
class Image < Pixelart::Image
|
23
|
+
def self.generator
|
24
|
+
@generator ||= Artfactory.use( Saudi::Sheet.builtin,
|
25
|
+
image_class: Image )
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
# note: remove/delete empyty attributes (n/a - not applicables)
|
30
|
+
## (e.g. "None" in Eyewear/Mouse Prop and
|
31
|
+
## "Clean Shaven" in Beard )
|
32
|
+
## future: make n/a values configurable that you can pass in
|
33
|
+
## e.g. nas: [] or such - why? why not?
|
34
|
+
NA = [
|
35
|
+
'cleanshaven',
|
36
|
+
'none'
|
37
|
+
]
|
38
|
+
|
39
|
+
def self.generate( *names )
|
40
|
+
names = names.filter { |name| !NA.include?( Pixelart::Spritesheet.normalize_key( name )) }
|
41
|
+
|
42
|
+
generator.generate( *names )
|
43
|
+
end
|
44
|
+
end # class Image
|
45
|
+
|
46
|
+
|
47
|
+
end # module Saudi
|
48
|
+
|
data/lib/punks/version.rb
CHANGED
data/lib/punks.rb
CHANGED
@@ -15,6 +15,7 @@ require 'punks/punks'
|
|
15
15
|
require 'punks/phunks'
|
16
16
|
require 'punks/marilyns'
|
17
17
|
require 'punks/philips'
|
18
|
+
require 'punks/saudis'
|
18
19
|
## --- 32x32 series
|
19
20
|
require 'punks/punks_xl'
|
20
21
|
|
@@ -44,6 +45,10 @@ Philips = Philip
|
|
44
45
|
### add some convenience shortcuts / alternate spelling variants
|
45
46
|
Marilyns = Marilyn
|
46
47
|
|
48
|
+
### add some convenience shortcuts / alternate spelling variants
|
49
|
+
Saudis = Saudi
|
50
|
+
Sheiks = Saudi
|
51
|
+
Sheik = Saudi
|
47
52
|
|
48
53
|
|
49
54
|
###
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: punks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pixelart
|
@@ -86,9 +86,9 @@ dependencies:
|
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '3.23'
|
89
|
-
description: punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn
|
90
|
-
'n' more (pixel) avatar / character images (off chain) from text attributes
|
91
|
-
built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
|
89
|
+
description: punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn,
|
90
|
+
saudi/sheik 'n' more (pixel) avatar / character images (off chain) from text attributes
|
91
|
+
(via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
|
92
92
|
email: wwwmake@googlegroups.com
|
93
93
|
executables: []
|
94
94
|
extensions: []
|
@@ -106,6 +106,8 @@ files:
|
|
106
106
|
- config/punks-24x24.png
|
107
107
|
- config/punks_xl-32x32.csv
|
108
108
|
- config/punks_xl-32x32.png
|
109
|
+
- config/saudis-24x24.csv
|
110
|
+
- config/saudis-24x24.png
|
109
111
|
- lib/punks.rb
|
110
112
|
- lib/punks/generator.rb
|
111
113
|
- lib/punks/marilyns.rb
|
@@ -113,6 +115,7 @@ files:
|
|
113
115
|
- lib/punks/phunks.rb
|
114
116
|
- lib/punks/punks.rb
|
115
117
|
- lib/punks/punks_xl.rb
|
118
|
+
- lib/punks/saudis.rb
|
116
119
|
- lib/punks/version.rb
|
117
120
|
homepage: https://github.com/cryptopunksnotdead/cryptopunks
|
118
121
|
licenses:
|
@@ -138,7 +141,7 @@ requirements: []
|
|
138
141
|
rubygems_version: 3.3.7
|
139
142
|
signing_key:
|
140
143
|
specification_version: 4
|
141
|
-
summary: punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn
|
142
|
-
more (pixel) avatar / character images (off chain) from text attributes
|
143
|
-
spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
|
144
|
+
summary: punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn,
|
145
|
+
saudi/sheik 'n' more (pixel) avatar / character images (off chain) from text attributes
|
146
|
+
(via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
|
144
147
|
test_files: []
|