punks 0.3.4 → 0.5.0
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 +6 -0
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/config/marcs-24x24.csv +149 -0
- data/config/marcs-24x24.png +0 -0
- data/config/philip-24x24.png +0 -0
- data/config/punks_2017-24x24.csv +134 -0
- data/config/punks_2017-24x24.png +0 -0
- data/lib/punks/bodies_32.rb +3 -0
- data/lib/punks/bodies_40.rb +3 -0
- data/lib/punks/marcs.rb +38 -0
- data/lib/punks/marilyns.rb +2 -0
- data/lib/punks/philips.rb +4 -0
- data/lib/punks/phunks.rb +3 -0
- data/lib/punks/pixelart/spritesheet.rb +3 -3
- data/lib/punks/punks.rb +6 -0
- data/lib/punks/punks_xl.rb +5 -0
- data/lib/punks/saudis.rb +5 -0
- data/lib/punks/version.rb +2 -2
- data/lib/punks/ye_olde_punks_2017.rb +48 -0
- data/lib/punks.rb +14 -0
- metadata +18 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9eb925127c4451cbf8badce2da52e7cbb766c8f0107ec8c6a3194a7bc7194016
|
|
4
|
+
data.tar.gz: df942f5efc5f3e789fb71a55354c4599a3b4242576cd8d9164432fa4e801e73d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 713cc7a18bca888b65a24043a8d23036d045ba50a7d1e6c8361106de1403ad1216bf6c93a1f6c3c239e0c6d0ca0c5aba4d36af64db0f59df40a1710d336d4c42
|
|
7
|
+
data.tar.gz: d83b82014d3f91aabeb13f2519c8c142aed9351138c5f987b1a936bfe9c135c3fba391a43583e27ade7b315e677617824285bd37dbf74c6e21da17bd760ff797
|
data/Manifest.txt
CHANGED
|
@@ -2,11 +2,15 @@ CHANGELOG.md
|
|
|
2
2
|
Manifest.txt
|
|
3
3
|
README.md
|
|
4
4
|
Rakefile
|
|
5
|
+
config/marcs-24x24.csv
|
|
6
|
+
config/marcs-24x24.png
|
|
5
7
|
config/philip-24x24.png
|
|
6
8
|
config/punks-24x24.csv
|
|
7
9
|
config/punks-24x24.png
|
|
8
10
|
config/punks-32x32.csv
|
|
9
11
|
config/punks-32x32.png
|
|
12
|
+
config/punks_2017-24x24.csv
|
|
13
|
+
config/punks_2017-24x24.png
|
|
10
14
|
config/punks_xl-32x32.csv
|
|
11
15
|
config/punks_xl-32x32.png
|
|
12
16
|
config/saudis-24x24.csv
|
|
@@ -14,6 +18,7 @@ config/saudis-24x24.png
|
|
|
14
18
|
lib/punks.rb
|
|
15
19
|
lib/punks/bodies_32.rb
|
|
16
20
|
lib/punks/bodies_40.rb
|
|
21
|
+
lib/punks/marcs.rb
|
|
17
22
|
lib/punks/marilyns.rb
|
|
18
23
|
lib/punks/philips.rb
|
|
19
24
|
lib/punks/phunks.rb
|
|
@@ -23,3 +28,4 @@ lib/punks/punks.rb
|
|
|
23
28
|
lib/punks/punks_xl.rb
|
|
24
29
|
lib/punks/saudis.rb
|
|
25
30
|
lib/punks/version.rb
|
|
31
|
+
lib/punks/ye_olde_punks_2017.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, Saudis/Sheiks, Men In Black, Hotties & More (Pixel Characters / Avatars)
|
|
3
|
+
# Punks (Incl. Ye Olde Punks V1/V2 Anno 2017), Phunks, Philips, Marilyns, Marcs, Saudis/Sheiks, Men In Black, Hotties & More (Pixel Characters / Avatars)
|
|
4
4
|
|
|
5
|
-
Yes, you can! Generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn, saudi/sheik, man in black, hottie & more (pixel) avatar / character images (off chain) from text attributes (via built-in
|
|
5
|
+
Yes, you can! Generate your own 24×24 (or 32×32) punk (incl. Matt & John's® ye olde punks v1/v2 anno 2017 style), phunk, philip, marilyn, marc, saudi/sheik, man in black, hottie & more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheets); 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, saudi/sheik, man in black, hottie 'n' more (pixel) avatar / character images (off chain) from text attributes (via built-in
|
|
16
|
+
self.summary = "punks - generate your own 24×24 (or 32×32) punk (incl. Matt & John's® ye olde punk v1/v2 anno 2017 style), phunk, philip, marilyn, marc, saudi/sheik, man in black, hottie 'n' more (pixel) avatar / character images (off chain) from 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/cryptopunksnotdead/cryptopunks' }
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
id, category, name, more_names
|
|
2
|
+
0, , marc-classic,
|
|
3
|
+
1, , ape-classic,
|
|
4
|
+
2, , Marc 1, Marc Dark
|
|
5
|
+
3, , Marc 2, Marc Mid | Marc Medium
|
|
6
|
+
4, , Marc 3, Marc | Marc Light
|
|
7
|
+
5, , Marc 4, Marc Albino
|
|
8
|
+
6, , Marc Gold, Gold | Marc Golden
|
|
9
|
+
7, , madlad,
|
|
10
|
+
8, , zombie,
|
|
11
|
+
9, , ape,
|
|
12
|
+
10, , Golden Ape, Ape Gold | Ape Golden
|
|
13
|
+
11, , Pink Ape, Ape Pink
|
|
14
|
+
12, , Blue Alien, Alien | Alien Blue
|
|
15
|
+
13, , Green Alien, Alien Green
|
|
16
|
+
14, , Devil 1, Devil | Demon | Demon 1
|
|
17
|
+
15, , Devil 2, Demon 2
|
|
18
|
+
16, , Devil 3, Demon 3
|
|
19
|
+
17, , orc,
|
|
20
|
+
18, , skeleton,
|
|
21
|
+
19, , bot,
|
|
22
|
+
20, , blue_eyes,
|
|
23
|
+
21, , green_eyes,
|
|
24
|
+
22, , blue_eye_shadow,
|
|
25
|
+
23, , green_eye_shadow,
|
|
26
|
+
24, , purple_eye_shadow,
|
|
27
|
+
25, , bagner,
|
|
28
|
+
26, , horns,
|
|
29
|
+
27, , marc_tyson,
|
|
30
|
+
28, , cleft,
|
|
31
|
+
29, , mole,
|
|
32
|
+
30, , rosy_cheeks,
|
|
33
|
+
31, , shine,
|
|
34
|
+
32, , spots,
|
|
35
|
+
33, , black_lipstick,
|
|
36
|
+
34, , hot_lipstick,
|
|
37
|
+
35, , purple_lipstick,
|
|
38
|
+
36, , buck_teeth,
|
|
39
|
+
37, , clown_nose,
|
|
40
|
+
38, , gold_ring,
|
|
41
|
+
39, , diamond_earring,
|
|
42
|
+
40, , gold_earring,
|
|
43
|
+
41, , diamond_helix,
|
|
44
|
+
42, , gold_helix,
|
|
45
|
+
43, , frown,
|
|
46
|
+
44, , smile,
|
|
47
|
+
45, , big_beard_white,
|
|
48
|
+
46, , big_beard,
|
|
49
|
+
47, , chinstrap,
|
|
50
|
+
48, , front_beard,
|
|
51
|
+
49, , front_beard_dark,
|
|
52
|
+
50, , full_mustache,
|
|
53
|
+
51, , full_mustache_dark,
|
|
54
|
+
52, , goat,
|
|
55
|
+
53, , goat_dark,
|
|
56
|
+
54, , handlebar,
|
|
57
|
+
55, , luxurious_beard,
|
|
58
|
+
56, , mustache,
|
|
59
|
+
57, , mutton_chop,
|
|
60
|
+
58, , normal_beard,
|
|
61
|
+
59, , normal_beard_black,
|
|
62
|
+
60, , shadow_beard,
|
|
63
|
+
61, , soul_patch,
|
|
64
|
+
62, , bandana,
|
|
65
|
+
63, , beanie,
|
|
66
|
+
64, , bunny_ears,
|
|
67
|
+
65, , cap,
|
|
68
|
+
66, , skull_cap,
|
|
69
|
+
67, , cap_forward,
|
|
70
|
+
68, , police_cap,
|
|
71
|
+
69, , cowboy_hat,
|
|
72
|
+
70, , do_rag,
|
|
73
|
+
71, , fast_food,
|
|
74
|
+
72, , marcdonalds,
|
|
75
|
+
73, , fedora,
|
|
76
|
+
74, , headband,
|
|
77
|
+
75, , roaring_headband,
|
|
78
|
+
76, , hoodie,
|
|
79
|
+
77, , purple_hoodie,
|
|
80
|
+
78, , knitted_cap,
|
|
81
|
+
79, , laurels,
|
|
82
|
+
80, , shemagh,
|
|
83
|
+
81, , tassle_hat,
|
|
84
|
+
82, , tiarra,
|
|
85
|
+
83, , top_hat,
|
|
86
|
+
84, , uncle_sam,
|
|
87
|
+
85, , viking,
|
|
88
|
+
86, , welding_goggles,
|
|
89
|
+
87, , blonde_bob,
|
|
90
|
+
88, , chad,
|
|
91
|
+
89, , clown_hair,
|
|
92
|
+
90, , crazy_white_hair,
|
|
93
|
+
91, , crazy_hair,
|
|
94
|
+
92, , frumpy_hair,
|
|
95
|
+
93, , marc_three,
|
|
96
|
+
94, , purple_hair,
|
|
97
|
+
95, , stringy_hair,
|
|
98
|
+
96, , vampire_hair,
|
|
99
|
+
97, , wild_blonde_hair,
|
|
100
|
+
98, , wild_hair,
|
|
101
|
+
99, , clown_eyes_blue,
|
|
102
|
+
100, , clown_eyes_green,
|
|
103
|
+
101, , lasers,
|
|
104
|
+
102, , tears,
|
|
105
|
+
103, , 3d_glasses,
|
|
106
|
+
104, , aviators,
|
|
107
|
+
105, , big_shades,
|
|
108
|
+
106, , classic_shades,
|
|
109
|
+
107, , deal_with_it,
|
|
110
|
+
108, , glasses,
|
|
111
|
+
109, , gold_glasses,
|
|
112
|
+
110, , horned_rim_glasses,
|
|
113
|
+
111, , monocle,
|
|
114
|
+
112, , nerd_glasses,
|
|
115
|
+
113, , pink_shades,
|
|
116
|
+
114, , polarized,
|
|
117
|
+
115, , polarized_white,
|
|
118
|
+
116, , regular_shades,
|
|
119
|
+
117, , small_shades,
|
|
120
|
+
118, , VR Headset, VR
|
|
121
|
+
119, , eye_mask,
|
|
122
|
+
120, , eye_patch,
|
|
123
|
+
121, , cigar,
|
|
124
|
+
122, , cigarette,
|
|
125
|
+
123, , hookah,
|
|
126
|
+
124, , pipe,
|
|
127
|
+
125, , vape,
|
|
128
|
+
126, , medical_mask,
|
|
129
|
+
127, , bubble_gum,
|
|
130
|
+
128, , black_tie,
|
|
131
|
+
129, , blue_tie,
|
|
132
|
+
130, , red_tie,
|
|
133
|
+
131, , blue_shirt,
|
|
134
|
+
132, , blue_t_shirt,
|
|
135
|
+
133, , Fast Food Shirt,
|
|
136
|
+
134, , green_shirt,
|
|
137
|
+
135, , grey_shirt,
|
|
138
|
+
136, , purple_t_shirt,
|
|
139
|
+
137, , white_t_shirt,
|
|
140
|
+
138, , jumpsuit,
|
|
141
|
+
139, , labcoat,
|
|
142
|
+
140, , choker,
|
|
143
|
+
141, , double_gold_chain,
|
|
144
|
+
142, , gold_chain,
|
|
145
|
+
143, , silver_chain,
|
|
146
|
+
144, , thick_chain,
|
|
147
|
+
145, , hemp,
|
|
148
|
+
146, , ice,
|
|
149
|
+
147, , medallion,
|
|
Binary file
|
data/config/philip-24x24.png
CHANGED
|
Binary file
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
id, name, gender, size, type, more_names
|
|
2
|
+
0, Male 1, m, l, Archetype,
|
|
3
|
+
1, Male 2, m, l, Archetype,
|
|
4
|
+
2, Male 3, m, l, Archetype,
|
|
5
|
+
3, Male 4, m, l, Archetype,
|
|
6
|
+
4, Female 1, f, s, Archetype,
|
|
7
|
+
5, Female 2, f, s, Archetype,
|
|
8
|
+
6, Female 3, f, s, Archetype,
|
|
9
|
+
7, Female 4, f, s, Archetype,
|
|
10
|
+
8, Zombie, m, l, Archetype,
|
|
11
|
+
9, Ape, m, l, Archetype,
|
|
12
|
+
10, Alien, m, l, Archetype,
|
|
13
|
+
11, Rosy Cheeks, m, l, ?,
|
|
14
|
+
12, Luxurious Beard, m, l, ?,
|
|
15
|
+
13, Clown Hair Green, m, l, ?,
|
|
16
|
+
14, Mohawk Dark, m, l, ?,
|
|
17
|
+
15, Cowboy Hat, m, l, ?,
|
|
18
|
+
16, Mustache, m, l, ?,
|
|
19
|
+
17, Clown Nose, m, l, ?,
|
|
20
|
+
18, Cigarette, m, l, ?,
|
|
21
|
+
19, Nerd Glasses, m, l, ?,
|
|
22
|
+
20, Regular Shades, m, l, ?,
|
|
23
|
+
21, Knitted Cap, m, l, ?,
|
|
24
|
+
22, Shadow Beard, m, l, ?,
|
|
25
|
+
23, Frown, m, l, ?,
|
|
26
|
+
24, Cap Forward, m, l, ?,
|
|
27
|
+
25, Goat, m, l, ?,
|
|
28
|
+
26, Mole, m, l, ?,
|
|
29
|
+
27, Purple Hair, m, l, ?,
|
|
30
|
+
28, Small Shades, m, l, ?,
|
|
31
|
+
29, Shaved Head, m, l, ?,
|
|
32
|
+
30, Classic Shades, m, l, ?,
|
|
33
|
+
31, Vape, m, l, ?,
|
|
34
|
+
32, Silver Chain, m, l, ?,
|
|
35
|
+
33, Smile, m, l, ?,
|
|
36
|
+
34, Big Shades, m, l, ?,
|
|
37
|
+
35, Mohawk Thin, m, l, ?,
|
|
38
|
+
36, Beanie, m, l, ?,
|
|
39
|
+
37, Cap, m, l, ?,
|
|
40
|
+
38, Clown Eyes Green, m, l, ?,
|
|
41
|
+
39, Normal Beard Black, m, l, ?,
|
|
42
|
+
40, Medical Mask, m, l, ?,
|
|
43
|
+
41, Normal Beard, m, l, ?,
|
|
44
|
+
42, VR, m, l, ?,
|
|
45
|
+
43, Eye Patch, m, l, ?,
|
|
46
|
+
44, Wild Hair, m, l, ?,
|
|
47
|
+
45, Top Hat, m, l, ?,
|
|
48
|
+
46, Bandana, m, l, ?,
|
|
49
|
+
47, Handlebars, m, l, ?,
|
|
50
|
+
48, Frumpy Hair, m, l, ?,
|
|
51
|
+
49, Crazy Hair, m, l, ?,
|
|
52
|
+
50, Police Cap, m, l, ?,
|
|
53
|
+
51, Buck Teeth, m, l, ?,
|
|
54
|
+
52, Do-rag, m, l, ?,
|
|
55
|
+
53, Front Beard, m, l, ?,
|
|
56
|
+
54, Spots, m, l, ?,
|
|
57
|
+
55, Big Beard, m, l, ?,
|
|
58
|
+
56, Vampire Hair, m, l, ?,
|
|
59
|
+
57, Peak Spike, m, l, ?,
|
|
60
|
+
58, Chinstrap, m, l, ?,
|
|
61
|
+
59, Fedora, m, l, ?,
|
|
62
|
+
60, Earring, m, l, ?,
|
|
63
|
+
61, Horned Rim Glasses, m, l, ?,
|
|
64
|
+
62, Headband, m, l, ?,
|
|
65
|
+
63, Pipe, m, l, ?,
|
|
66
|
+
64, Messy Hair, m, l, ?,
|
|
67
|
+
65, Front Beard Dark, m, l, ?,
|
|
68
|
+
66, Hoodie, m, l, ?,
|
|
69
|
+
67, Gold Chain, m, l, ?,
|
|
70
|
+
68, Muttonchops, m, l, ?,
|
|
71
|
+
69, Stringy Hair, m, l, ?,
|
|
72
|
+
70, Eye Mask, m, l, ?,
|
|
73
|
+
71, 3D Glasses, m, l, ?,
|
|
74
|
+
72, Clown Eyes Blue, m, l, ?,
|
|
75
|
+
73, Mohawk, m, l, ?,
|
|
76
|
+
74, Pilot Helmet, f, s, ?,
|
|
77
|
+
75, Tassle Hat, f, s, ?,
|
|
78
|
+
76, Hot Lipstick, f, s, ?,
|
|
79
|
+
77, Blue Eye Shadow, f, s, ?,
|
|
80
|
+
78, Straight Hair Dark, f, s, ?,
|
|
81
|
+
79, Choker, f, s, ?,
|
|
82
|
+
80, Crazy Hair, f, s, ?,
|
|
83
|
+
81, Regular Shades, f, s, ?,
|
|
84
|
+
82, Wild Blonde, f, s, ?,
|
|
85
|
+
83, 3D Glasses, f, s, ?,
|
|
86
|
+
84, Mole, f, s, ?,
|
|
87
|
+
85, Wild White Hair, f, s, ?,
|
|
88
|
+
86, Spots, f, s, ?,
|
|
89
|
+
87, Frumpy Hair, f, s, ?,
|
|
90
|
+
88, Nerd Glasses, f, s, ?,
|
|
91
|
+
89, Tiara, f, s, ?,
|
|
92
|
+
90, Orange Side, f, s, ?,
|
|
93
|
+
91, Red Mohawk, f, s, ?,
|
|
94
|
+
92, Messy Hair, f, s, ?,
|
|
95
|
+
93, Clown Eyes Blue, f, s, ?,
|
|
96
|
+
94, Pipe, f, s, ?,
|
|
97
|
+
95, Wild Hair, f, s, ?,
|
|
98
|
+
96, Purple Eye Shadow, f, s, ?,
|
|
99
|
+
97, Stringy Hair, f, s, ?,
|
|
100
|
+
98, Dark Hair, f, s, ?,
|
|
101
|
+
99, Eye Patch, f, s, ?,
|
|
102
|
+
100, Blonde Short, f, s, ?,
|
|
103
|
+
101, Classic Shades, f, s, ?,
|
|
104
|
+
102, Eye Mask, f, s, ?,
|
|
105
|
+
103, Clown Hair Green, f, s, ?,
|
|
106
|
+
104, Cap, f, s, ?,
|
|
107
|
+
105, Medical Mask, f, s, ?,
|
|
108
|
+
106, Bandana, f, s, ?,
|
|
109
|
+
107, Purple Lipstick, f, s, ?,
|
|
110
|
+
108, Clown Nose, f, s, ?,
|
|
111
|
+
109, Headband, f, s, ?,
|
|
112
|
+
110, Pigtails, f, s, ?,
|
|
113
|
+
111, Straight Hair Blonde, f, s, ?,
|
|
114
|
+
112, Knitted Cap, f, s, ?,
|
|
115
|
+
113, Clown Eyes Green, f, s, ?,
|
|
116
|
+
114, Cigarette, f, s, ?,
|
|
117
|
+
115, Welding Goggles, f, s, ?,
|
|
118
|
+
116, Mohawk Thin, f, s, ?,
|
|
119
|
+
117, Gold Chain, f, s, ?,
|
|
120
|
+
118, VR, f, s, ?,
|
|
121
|
+
119, Vape, f, s, ?,
|
|
122
|
+
120, Pink With Hat, f, s, ?,
|
|
123
|
+
121, Blonde Bob, f, s, ?,
|
|
124
|
+
122, Mohawk, f, s, ?,
|
|
125
|
+
123, Big Shades, f, s, ?,
|
|
126
|
+
124, Earring, f, s, ?,
|
|
127
|
+
125, Green Eye Shadow, f, s, ?,
|
|
128
|
+
126, Straight Hair, f, s, ?,
|
|
129
|
+
127, Rosy Cheeks, f, s, ?,
|
|
130
|
+
128, Half Shaved, f, s, ?,
|
|
131
|
+
129, Mohawk Dark, f, s, ?,
|
|
132
|
+
130, Black Lipstick, f, s, ?,
|
|
133
|
+
131, Horned Rim Glasses, f, s, ?,
|
|
134
|
+
132, Silver Chain, f, s, ?,
|
|
Binary file
|
data/lib/punks/bodies_32.rb
CHANGED
|
@@ -41,6 +41,9 @@ module Punk32
|
|
|
41
41
|
|
|
42
42
|
class Image < Pixelart::Image
|
|
43
43
|
|
|
44
|
+
NAMES = ['punk32', 'punks32']
|
|
45
|
+
DEFAULT_ATTRIBUTES = ['Male Mid 2']
|
|
46
|
+
|
|
44
47
|
def self.generate( *values, patch: nil )
|
|
45
48
|
|
|
46
49
|
attributes = [] ## collect all attribute images (32x32, 24x24, etc.) to merge/paste here
|
data/lib/punks/bodies_40.rb
CHANGED
|
@@ -16,6 +16,9 @@ module Punk40
|
|
|
16
16
|
|
|
17
17
|
class Image < Pixelart::Image
|
|
18
18
|
|
|
19
|
+
NAMES = ['punk40', 'punks40']
|
|
20
|
+
DEFAULT_ATTRIBUTES = ['Male Mid 2']
|
|
21
|
+
|
|
19
22
|
def self.generate( *values, patch: nil )
|
|
20
23
|
|
|
21
24
|
attributes = [] ## collect all attribute images (32x32, 24x24, etc.) to merge/paste here
|
data/lib/punks/marcs.rb
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module Marc
|
|
2
|
+
|
|
3
|
+
class Spritesheet
|
|
4
|
+
def self.builtin
|
|
5
|
+
@builtin ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Punks.root}/config/marcs-24x24.png",
|
|
6
|
+
"#{Pixelart::Module::Punks.root}/config/marcs-24x24.csv",
|
|
7
|
+
width: 24,
|
|
8
|
+
height: 24 )
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def self.find_by( name: ) ## return archetype/attribute image by name
|
|
12
|
+
builtin.find_by( name: name )
|
|
13
|
+
end
|
|
14
|
+
end # class Spritesheet
|
|
15
|
+
## add convenience (alternate spelling) alias - why? why not?
|
|
16
|
+
SpriteSheet = Spritesheet
|
|
17
|
+
Sheet = Spritesheet
|
|
18
|
+
Sprite = Spritesheet
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
NAMES = ['marc', 'marcs']
|
|
22
|
+
DEFAULT_ATTRIBUTES = ['Marc']
|
|
23
|
+
|
|
24
|
+
class Image < Pixelart::Image
|
|
25
|
+
def self.generator
|
|
26
|
+
@generator ||= Artfactory.use( Sheet.builtin,
|
|
27
|
+
image_class: Image )
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def self.generate( *names )
|
|
31
|
+
## note: return marcs "hand-phlipped" by default as phree phunks
|
|
32
|
+
generator.generate( *names ).mirror
|
|
33
|
+
end
|
|
34
|
+
end # class Image
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
end # module Marc
|
|
38
|
+
|
data/lib/punks/marilyns.rb
CHANGED
data/lib/punks/philips.rb
CHANGED
|
@@ -7,6 +7,10 @@ module Philip
|
|
|
7
7
|
## note: right-looking ("pre-phlipped") philip
|
|
8
8
|
PHILIP = Pixelart::Image.read( "#{Pixelart::Module::Punks.root}/config/philip-24x24.png" )
|
|
9
9
|
|
|
10
|
+
|
|
11
|
+
NAMES = ['philip', 'philips',
|
|
12
|
+
'philipp', 'philipps' ]
|
|
13
|
+
|
|
10
14
|
def self.generate( *values )
|
|
11
15
|
punk = new( 24, 24 )
|
|
12
16
|
punk.compose!( PHILIP )
|
data/lib/punks/phunks.rb
CHANGED
|
@@ -38,8 +38,8 @@ module Pixelart
|
|
|
38
38
|
|
|
39
39
|
## todo/check - find better names for type attribute/archetypes?
|
|
40
40
|
## use (alternate name/alias) base or face for archetypes? any others?
|
|
41
|
-
def
|
|
42
|
-
def
|
|
41
|
+
def archetype?() @type.downcase.index( 'archetype' ); end
|
|
42
|
+
def attribute?() !archetype?; end
|
|
43
43
|
|
|
44
44
|
def small?() @size == 's'; end
|
|
45
45
|
def large?() @size == 'l'; end
|
|
@@ -263,7 +263,7 @@ def _build_attributes_by_name( recs )
|
|
|
263
263
|
key << "_(#{rec.gender}+#{rec.size})" if rec.attribute?
|
|
264
264
|
|
|
265
265
|
if h[ key ]
|
|
266
|
-
puts "!!! ERROR - attribute
|
|
266
|
+
puts "!!! ERROR - attribute with key >#{key}< is not unique:"
|
|
267
267
|
pp rec
|
|
268
268
|
puts "duplicate:"
|
|
269
269
|
pp h[key]
|
data/lib/punks/punks.rb
CHANGED
|
@@ -40,6 +40,12 @@ module Punk
|
|
|
40
40
|
@generator ||= GeneratorEx.use( Sheet.builtin, image_class: Image )
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
NAMES = ['punk', 'punks']
|
|
47
|
+
DEFAULT_ATTRIBUTES = ['Male 2']
|
|
48
|
+
|
|
43
49
|
def self.generate( *values, style: nil, patch: nil )
|
|
44
50
|
|
|
45
51
|
if values[0].is_a?( String )
|
data/lib/punks/punks_xl.rb
CHANGED
data/lib/punks/saudis.rb
CHANGED
|
@@ -36,6 +36,11 @@ module Saudi
|
|
|
36
36
|
'none'
|
|
37
37
|
]
|
|
38
38
|
|
|
39
|
+
NAMES = ['saudi', 'saudis',
|
|
40
|
+
'sheik', 'sheiks']
|
|
41
|
+
DEFAULT_ATTRIBUTES = ['Male 05', 'White Shemag']
|
|
42
|
+
|
|
43
|
+
|
|
39
44
|
def self.generate( *names )
|
|
40
45
|
names = names.filter { |name| !NA.include?( Pixelart::Spritesheet.normalize_key( name )) }
|
|
41
46
|
|
data/lib/punks/version.rb
CHANGED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
module YeOldePunkAnno2017
|
|
3
|
+
|
|
4
|
+
class Spritesheet
|
|
5
|
+
def self.builtin
|
|
6
|
+
@builtin ||= Pixelart::SpritesheetEx.read( "#{Pixelart::Module::Punks.root}/config/punks_2017-24x24.png",
|
|
7
|
+
"#{Pixelart::Module::Punks.root}/config/punks_2017-24x24.csv",
|
|
8
|
+
width: 24,
|
|
9
|
+
height: 24 )
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
## note: for now class used for "namespace" only
|
|
13
|
+
def self.find_by( name:, gender: nil, size: nil, warn: true ) ## return archetype/attribute image by name
|
|
14
|
+
# note: pass along name as q (query string)
|
|
15
|
+
builtin.find_by( name: name,
|
|
16
|
+
gender: gender,
|
|
17
|
+
size: size,
|
|
18
|
+
warn: warn )
|
|
19
|
+
end
|
|
20
|
+
end # class Spritesheet
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## add convenience (alternate spelling) alias - why? why not?
|
|
24
|
+
SpriteSheet = Spritesheet
|
|
25
|
+
Sheet = Spritesheet
|
|
26
|
+
Sprite = Spritesheet
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class Image < Pixelart::Image
|
|
31
|
+
|
|
32
|
+
def self.generator
|
|
33
|
+
@generator ||= GeneratorEx.use( Sheet.builtin, image_class: Image )
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
NAMES = ['punkv1', 'punksv1',
|
|
38
|
+
'punkv2', 'punksv2',
|
|
39
|
+
'punk2017', 'punks2017',
|
|
40
|
+
'yeoldepunk', 'yeoldepunks']
|
|
41
|
+
DEFAULT_ATTRIBUTES = ['Male 2']
|
|
42
|
+
|
|
43
|
+
def self.generate( *values )
|
|
44
|
+
generator.generate( *values )
|
|
45
|
+
end # method Image.generate
|
|
46
|
+
end # class Image
|
|
47
|
+
end # module YeOldePunkAnno2017
|
|
48
|
+
|
data/lib/punks.rb
CHANGED
|
@@ -18,6 +18,8 @@ require 'punks/phunks'
|
|
|
18
18
|
require 'punks/marilyns'
|
|
19
19
|
require 'punks/philips'
|
|
20
20
|
require 'punks/saudis'
|
|
21
|
+
require 'punks/marcs'
|
|
22
|
+
require 'punks/ye_olde_punks_2017'
|
|
21
23
|
## --- 32x32 series
|
|
22
24
|
require 'punks/punks_xl'
|
|
23
25
|
require 'punks/bodies_32'
|
|
@@ -55,6 +57,18 @@ Sheiks = Saudi
|
|
|
55
57
|
Sheik = Saudi
|
|
56
58
|
|
|
57
59
|
|
|
60
|
+
## add some convience shortcuts / alternate spelling variants
|
|
61
|
+
YeOldePunk2017 = YeOldePunkAnno2017
|
|
62
|
+
Yeoldepunk2017 = YeOldePunkAnno2017
|
|
63
|
+
YeOldePunk = YeOldePunkAnno2017
|
|
64
|
+
Yeoldepunk = YeOldePunkAnno2017
|
|
65
|
+
Punk2017 = YeOldePunkAnno2017
|
|
66
|
+
PunkV1 = YeOldePunkAnno2017
|
|
67
|
+
Punkv1 = YeOldePunkAnno2017
|
|
68
|
+
PunkV2 = YeOldePunkAnno2017
|
|
69
|
+
Punkv2 = YeOldePunkAnno2017
|
|
70
|
+
|
|
71
|
+
|
|
58
72
|
###
|
|
59
73
|
# note: for convenience auto include Pixelart namespace!!! - why? why not?
|
|
60
74
|
include Pixelart
|
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.5.0
|
|
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
|
|
@@ -86,10 +86,11 @@ 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
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
bigger sizes
|
|
89
|
+
description: punks - generate your own 24×24 (or 32×32) punk (incl. Matt & John's®
|
|
90
|
+
ye olde punk v1/v2 anno 2017 style), phunk, philip, marilyn, marc, saudi/sheik,
|
|
91
|
+
man in black, hottie 'n' more (pixel) avatar / character images (off chain) from
|
|
92
|
+
text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes
|
|
93
|
+
and more
|
|
93
94
|
email: wwwmake@googlegroups.com
|
|
94
95
|
executables: []
|
|
95
96
|
extensions: []
|
|
@@ -102,11 +103,15 @@ files:
|
|
|
102
103
|
- Manifest.txt
|
|
103
104
|
- README.md
|
|
104
105
|
- Rakefile
|
|
106
|
+
- config/marcs-24x24.csv
|
|
107
|
+
- config/marcs-24x24.png
|
|
105
108
|
- config/philip-24x24.png
|
|
106
109
|
- config/punks-24x24.csv
|
|
107
110
|
- config/punks-24x24.png
|
|
108
111
|
- config/punks-32x32.csv
|
|
109
112
|
- config/punks-32x32.png
|
|
113
|
+
- config/punks_2017-24x24.csv
|
|
114
|
+
- config/punks_2017-24x24.png
|
|
110
115
|
- config/punks_xl-32x32.csv
|
|
111
116
|
- config/punks_xl-32x32.png
|
|
112
117
|
- config/saudis-24x24.csv
|
|
@@ -114,6 +119,7 @@ files:
|
|
|
114
119
|
- lib/punks.rb
|
|
115
120
|
- lib/punks/bodies_32.rb
|
|
116
121
|
- lib/punks/bodies_40.rb
|
|
122
|
+
- lib/punks/marcs.rb
|
|
117
123
|
- lib/punks/marilyns.rb
|
|
118
124
|
- lib/punks/philips.rb
|
|
119
125
|
- lib/punks/phunks.rb
|
|
@@ -123,6 +129,7 @@ files:
|
|
|
123
129
|
- lib/punks/punks_xl.rb
|
|
124
130
|
- lib/punks/saudis.rb
|
|
125
131
|
- lib/punks/version.rb
|
|
132
|
+
- lib/punks/ye_olde_punks_2017.rb
|
|
126
133
|
homepage: https://github.com/cryptopunksnotdead/cryptopunks
|
|
127
134
|
licenses:
|
|
128
135
|
- Public Domain
|
|
@@ -147,8 +154,9 @@ requirements: []
|
|
|
147
154
|
rubygems_version: 3.3.7
|
|
148
155
|
signing_key:
|
|
149
156
|
specification_version: 4
|
|
150
|
-
summary: punks - generate your own 24×24 (or 32×32) punk
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
bigger sizes and
|
|
157
|
+
summary: punks - generate your own 24×24 (or 32×32) punk (incl. Matt & John's® ye
|
|
158
|
+
olde punk v1/v2 anno 2017 style), phunk, philip, marilyn, marc, saudi/sheik, man
|
|
159
|
+
in black, hottie 'n' more (pixel) avatar / character images (off chain) from text
|
|
160
|
+
attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and
|
|
161
|
+
more
|
|
154
162
|
test_files: []
|