Repository navigation
Expand file tree
/
Copy pathgenerate_logos.py
More file actions
276 lines (235 loc) · 7.95 KB
/
Copy pathgenerate_logos.py
File metadata and controls
276 lines (235 loc) · 7.95 KB
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
"""Generate pixel art logos for VibeMCP using the avatar color palette."""
from PIL import Image, ImageDraw
import math
import os
# Color palette extracted from avatar (66913595.jpg)
P = {
'bg_dark': (35, 44, 48),
'bg_mid': (44, 57, 66),
'gold': (225, 163, 44),
'gold_light': (211, 165, 81),
'gold_dim': (174, 143, 84),
'orange': (195, 97, 42),
'brown': (165, 82, 39),
'brown_dark': (142, 59, 31),
'brown_shadow': (86, 49, 32),
'gray': (102, 97, 84),
'skin': (145, 106, 79),
'white': (240, 235, 220),
'black': (20, 25, 28),
}
PIXEL = 8 # Each logical pixel = 8x8 actual pixels
_ = None
def set_pixel(grid, x, y, color):
if 0 <= x < 32 and 0 <= y < 32:
grid[y][x] = color
def create_logo(grid, filename, size=32):
img = Image.new('RGB', (size * PIXEL, size * PIXEL), P['bg_dark'])
draw = ImageDraw.Draw(img)
for y, row in enumerate(grid):
for x, color_key in enumerate(row):
if color_key and color_key in P:
draw.rectangle(
[x * PIXEL, y * PIXEL, (x + 1) * PIXEL - 1, (y + 1) * PIXEL - 1],
fill=P[color_key]
)
img_large = img.resize((size * PIXEL * 4, size * PIXEL * 4), Image.NEAREST)
img.save(filename)
large_name = filename.replace('.png', '_large.png')
img_large.save(large_name)
print(f" Saved: {filename} ({size * PIXEL}x{size * PIXEL})")
print(f" Saved: {large_name} ({size * PIXEL * 4}x{size * PIXEL * 4})")
def logo_v_bold():
"""Logo 1: Bold stylized V with energy glow."""
g = [[None] * 32 for _ in range(32)]
# Golden halo background (subtle)
cx, cy = 16, 14
for angle in range(360):
for r in [13, 13.5, 14]:
x = int(cx + r * math.cos(math.radians(angle)))
y = int(cy + r * math.sin(math.radians(angle)))
set_pixel(g, x, y, 'gold_dim')
# V shape - thick 3px strokes
for i in range(18):
# Left arm going down-right
lx = 5 + i
ly = 4 + i
for dx in range(3):
set_pixel(g, lx + dx, ly, 'gold')
if i % 3 == 0:
set_pixel(g, lx + dx, ly, 'orange')
# Right arm going down-left
rx = 27 - i - 2
ry = 4 + i
for dx in range(3):
set_pixel(g, rx + dx, ry, 'gold')
if i % 3 == 0:
set_pixel(g, rx + dx, ry, 'orange')
# Bottom point merge
for dx in range(4):
set_pixel(g, 14 + dx, 22, 'gold')
set_pixel(g, 14 + dx, 23, 'orange')
set_pixel(g, 15, 24, 'gold_light')
set_pixel(g, 16, 24, 'gold_light')
# Lightning accent (bottom-left)
bolt = [(10, 25), (11, 25), (12, 26), (10, 26), (11, 26),
(11, 27), (12, 27), (10, 28)]
for bx, by in bolt:
set_pixel(g, bx, by, 'gold_light')
return g
def logo_v_circle():
"""Logo 2: V inside golden halo circle (matching avatar style)."""
g = [[None] * 32 for _ in range(32)]
cx, cy = 16, 16
# Outer golden ring
for angle in range(360):
for r_off in [12.5, 13, 13.5, 14]:
x = int(cx + r_off * math.cos(math.radians(angle)))
y = int(cy + r_off * math.sin(math.radians(angle)))
set_pixel(g, x, y, 'gold')
# Inner fill with dark bg
for y in range(32):
for x in range(32):
dx, dy = x - cx, y - cy
if math.sqrt(dx * dx + dy * dy) < 12 and g[y][x] is None:
set_pixel(g, x, y, 'bg_mid')
# V letterform inside circle
for i in range(14):
t = i / 13.0
# Left arm
lx = int(9 + i * 0.5)
ly = 7 + i
color = 'gold' if i % 2 == 0 else 'orange'
set_pixel(g, lx, ly, color)
set_pixel(g, lx + 1, ly, color)
# Right arm
rx = int(22 - i * 0.5)
ry = 7 + i
set_pixel(g, rx, ry, color)
set_pixel(g, rx - 1, ry, color)
# Bottom merge
set_pixel(g, 15, 21, 'gold')
set_pixel(g, 16, 21, 'gold')
set_pixel(g, 15, 22, 'gold_light')
set_pixel(g, 16, 22, 'gold_light')
# Glow dots around circle
for angle in range(0, 360, 30):
x = int(cx + 15 * math.cos(math.radians(angle)))
y = int(cy + 15 * math.sin(math.radians(angle)))
set_pixel(g, x, y, 'gold_dim')
return g
def logo_robot():
"""Logo 3: Robot mascot with headphones (matching avatar style)."""
g = [[None] * 32 for _ in range(32)]
# Golden halo behind robot
cx, cy = 16, 14
for angle in range(360):
for r in [13, 13.5, 14, 14.5]:
x = int(cx + r * math.cos(math.radians(angle)))
y = int(cy + r * math.sin(math.radians(angle)))
if 0 <= x < 32 and 0 <= y < 32:
set_pixel(g, x, y, 'gold_dim')
# Antenna
set_pixel(g, 15, 1, 'gold')
set_pixel(g, 16, 1, 'gold')
set_pixel(g, 15, 2, 'gold_light')
set_pixel(g, 16, 2, 'gold_light')
# Headphone band
for x in range(9, 23):
set_pixel(g, x, 3, 'gray')
# Head (rounded rectangle)
for x in range(11, 21):
set_pixel(g, x, 3, 'gold')
set_pixel(g, x, 15, 'gold')
for y in range(4, 15):
set_pixel(g, 10, y, 'gold')
set_pixel(g, 21, y, 'gold')
# Fill head
for x in range(11, 21):
for y in range(4, 15):
set_pixel(g, x, y, 'bg_mid')
# Corners
set_pixel(g, 10, 3, 'gold')
set_pixel(g, 21, 3, 'gold')
set_pixel(g, 10, 15, 'gold')
set_pixel(g, 21, 15, 'gold')
# Eyes (glowing golden)
for x in range(13, 15):
for y in range(7, 10):
set_pixel(g, x, y, 'gold')
for x in range(17, 19):
for y in range(7, 10):
set_pixel(g, x, y, 'gold')
# Pupils
set_pixel(g, 14, 8, 'white')
set_pixel(g, 17, 8, 'white')
# Mouth
for x in range(13, 19):
set_pixel(g, x, 12, 'orange')
set_pixel(g, 13, 11, 'orange')
set_pixel(g, 18, 11, 'orange')
# Headphones (like avatar!)
for y in range(5, 13):
set_pixel(g, 8, y, 'gray')
set_pixel(g, 9, y, 'gray')
set_pixel(g, 22, y, 'gray')
set_pixel(g, 23, y, 'gray')
# Body
for x in range(12, 20):
set_pixel(g, x, 17, 'gold')
set_pixel(g, x, 24, 'gold')
for y in range(17, 25):
set_pixel(g, 11, y, 'gold')
set_pixel(g, 20, y, 'gold')
for x in range(12, 20):
for y in range(18, 24):
set_pixel(g, x, y, 'bg_mid')
# Neck
set_pixel(g, 15, 16, 'gray')
set_pixel(g, 16, 16, 'gray')
# "V" emblem on chest
set_pixel(g, 14, 19, 'gold')
set_pixel(g, 17, 19, 'gold')
set_pixel(g, 14, 20, 'orange')
set_pixel(g, 17, 20, 'orange')
set_pixel(g, 15, 21, 'gold')
set_pixel(g, 16, 21, 'gold')
set_pixel(g, 15, 22, 'gold_light')
set_pixel(g, 16, 22, 'gold_light')
# Arms
for y in range(18, 24):
set_pixel(g, 9, y, 'orange')
set_pixel(g, 10, y, 'orange')
set_pixel(g, 21, y, 'orange')
set_pixel(g, 22, y, 'orange')
# Hands
set_pixel(g, 8, 23, 'gold')
set_pixel(g, 9, 24, 'gold')
set_pixel(g, 23, 23, 'gold')
set_pixel(g, 22, 24, 'gold')
# Legs
for y in range(25, 29):
set_pixel(g, 13, y, 'gold')
set_pixel(g, 14, y, 'gold')
set_pixel(g, 17, y, 'gold')
set_pixel(g, 18, y, 'gold')
# Feet
for x in range(12, 15):
set_pixel(g, x, 29, 'orange')
for x in range(17, 20):
set_pixel(g, x, 29, 'orange')
return g
if __name__ == '__main__':
out_dir = os.path.dirname(os.path.abspath(__file__))
print("Generating VibeMCP logos...")
print()
print("Logo 1: Bold V with Lightning")
create_logo(logo_v_bold(), os.path.join(out_dir, 'logo_v_bolt.png'))
print()
print("Logo 2: V in Golden Halo Circle")
create_logo(logo_v_circle(), os.path.join(out_dir, 'logo_v_circle.png'))
print()
print("Logo 3: Robot Mascot (avatar style)")
create_logo(logo_robot(), os.path.join(out_dir, 'logo_robot.png'))
print()
print("Done! All logos saved to:", out_dir)