-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgenerate_sample.rb
258 lines (208 loc) · 5.88 KB
/
generate_sample.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
require 'pixelart'
require_relative 'base'
specs = parse_data( <<DATA )
alien, cap mcd
ape
ape, regular shades
ape, knitted cap
ape, bandana
ape, cap mcd
ape, hoodie
ape golden
ape golden, regular shades
ape golden, laser eyes red
ape golden, laser eyes 2 red
ape golden, laser eyes 3 red
ape golden, 3d glasses, crown
ape, hoodie dark
ape, hoodie light
ape, small shades
ape, regular shades
ape, modern shades
ape, cool shades
ape, big shades
ape, big shades green
ape, classic hat
ape, fedora
ape, top hat
ape, cowboy hat
ape, cap mcb
## try more attributes
light, regular shades
orc, regular shades
albino, regular shades
pink, regular shades
orange, regular shades
zombie, regular shades
light, horned rim glasses
orc, horned rim glasses
albino, horned rim glasses
pink, horned rim glasses
orange, horned rim glasses
zombie, horned rim glasses
light, headphone
orc, headphone
joe, regular shades
joe, horned rim glasses
joe, headphone
joe, headband
joe, bandana
joe, do-rag blue
donald, regular shades
donald, horned rim glasses
donald, headphone2
donald, headband2
donald, cap red
donald, bandana3
donald, do-rag red
light, bandana, headphone2
light, bandana3, headphone2
light, do-rag
light, do-rag, headphone
light, do-rag, headphone2
light, do-rag red
light, do-rag red, headphone
light, do-rag red, headphone2
light, long hair blonde
light, long hair pink
dark, long hair
pink, long hair blonde
light, long hair blonde, purple lipstick
light, long hair pink, purple lipstick
dark, long hair, purple lipstick
pink, long hair blonde, purple lipstick
pink, long hair blonde, purple lipstick, mole, earring
pink, long hair blonde, horned rim glasses, purple lipstick, mole, earring
light, bob blonde
light, bob
light, bob 2 blonde
light, bob 2 pink
## try new samples
light, wild hair, cool shades, beard light
light, headband, beard, 3d glasses, pipe
light, knitted cap, big shades, beard
orc, wild hair, medical mask, classic shades
orc, wild hair, medical mask
orc, medical mask
dark, do-rag, beard, 3d glasses
dark, do-rag, beard
dark, do-rag
dark, long hair pink, cap small, clown eyes blue, mole, purple lipstick
dark, long hair pink, mole, purple lipstick
dark, long hair blonde, mole, purple lipstick
light, long hair blonde, mole, purple lipstick
## archetypes
maxibiz
black
default
dark
light
albino
orange
pink
zombie
orc
alien
maxibiz, mohawk
black, mohawk
default, mohawk
dark, mohawk
light, mohawk
albino, mohawk
orange, mohawk red
pink, mohawk blonde, earring
zombie, mohawk red
orc, mohawk purple
alien, mohawk purple
maxibiz, top hat, earring, 3d glasses
black, top hat, earring, 3d glasses
default, top hat, earring, 3d glasses
dark, top hat, earring, 3d glasses
light, top hat, earring, 3d glasses
albino, top hat, earring, 3d glasses
orange, top hat, earring, 3d glasses
pink, bob blonde, cap small, earring, 3d glasses
zombie, top hat, gold chain, 3d glasses
orc, top hat, gold chain, 3d glasses
alien, headband
maxibiz, beanie
black, knitted cap
default, headband
dark, polarized shades, luxuriousbeard
light, classic shades, luxuriousbeard light
albino, peak spike, beard, cool shades
orange, beard light, eye patch
pink, peak spike blonde, earring, big shades
zombie, chinstrap light
orc, eyemask, gold chain, goat
alien, cap forward, pipe
maxibiz, cap mcb, bubblegum
black, cap
default, wizardhat
dark, cowboyhat
light, wizardhat, bubblegum
albino, crown
orange, jesterhat, bubblegum
pink, crown
zombie, bandana2
orc, frenchcap
alien, bandana
maxibiz, hoodie, vr
black, hoodie, vr
default, hoodie, vr
dark, hoodie, vr
light, hoodie, vr
albino, hoodie, vr
orange, hoodie, vr
pink, hoodie, vr, gold chain
zombie, hoodie, vr
orc, hoodie, vr
alien, hoodie, vr
maxibiz, clown eyes, clown nose, wild hair
black, clown eyes, clown nose, wild hair
default, clown eyes, clown nose, wild hair
dark, clown eyes, clown nose, wild hair
light, clown eyes, clown nose, wild hair blonde
albino, clown eyes, clown nose, wild hair
orange, clown eyes, clown nose, wild hair red
pink, clown eyes blue, clown nose, bob blonde
zombie, clown eyes, clown nose, wild hair red
orc, clown eyes, clown nose, wild hair purple
alien, clown eyes, clown nose, wild hair purple
maxibiz, mohawk2, lasereyes red
black, mohawk2, lasereyes red
default, mohawk2, lasereyes red
dark, mohawk2, lasereyes green
light, mohawk2, lasereyes blue
albino, mohawk2, lasereyes gold
orange, mohawk2 red, lasereyes2 red
pink, mohawk2 blonde, earring, lasereyes2 blue
zombie, mohawk2 red, lasereyes2 green
orc, mohawk2 purple, lasereyes2 red
alien, mohawk2 purple, lasereyes2 gold
maxibiz, wild hair, lasereyes3 red
black, wild hair, lasereyes3 red
default, wild hair, lasereyes3 red
dark, wild hair, lasereyes3 green, clown nose
light, lasereyes3 blue, clown nose
albino, lasereyes3 red
orange, wild hair red, lasereyes3 green
pink, bob blonde, lasereyes3 blue
zombie, lasereyes3 green
orc, lasereyes3 red
alien, lasereyes3 gold
DATA
cols = 11
rows = specs.size / cols
rows += 1 if specs.size % cols != 0
composite = ImageComposite.new( cols, rows,
width: 24, height: 24 )
specs.each_with_index do |spec, i|
img = generate( *spec)
img.save( "./tmp/punk#{i}.png" )
img.zoom(10).save( "./tmp/punk#{i}@10x.png" )
composite << img
end
composite.save( "./tmp/welovepunks.png" )
composite.zoom(4).save( "./tmp/welovepunks@4x.png" )
puts "bye"