nuevos artes
This commit is contained in:
1 parent
71ccf6d513
commit
ac1d386143
15 files changed
+6158
-3795
No files matched your search
@@ -37,10 +37,10 @@ class Look:
|
||||
|
||||
|
||||
LOOKS: dict[str, Look] = {
|
||||
'guitarist': Look('Diego · Guitarra', '#642c35', '#b14a50', '#311f2c', '#f1bc6a', '#ffe0a1', '#191c2d', '#535167', '#d59a78', '#ffcf9f', '#a36555', '#283044', '#482b34', 'guitar'),
|
||||
'drummer': Look('Iván · Batería', '#2f5969', '#65a6ae', '#1d3345', '#f2c879', '#f7e5ae', '#1c202d', '#545565', '#c98c68', '#f0be8e', '#905948', '#293044', '#26333e', 'drums'),
|
||||
'bassist': Look('Fer · Bajo', '#493c6b', '#7864a2', '#2a2844', '#92c2af', '#c3ead3', '#161726', '#474057', '#ae7c60', '#e8b58c', '#825044', '#282940', '#433c58', 'bass'),
|
||||
'singer': Look('Héctor · Voz', '#304b42', '#597b61', '#202d32', '#ec6251', '#ffa079', '#aa803f', '#ead183', '#d39c75', '#f4c8a0', '#a56f58', '#34333d', '#2d2f37', 'mic'),
|
||||
'guitarist': Look('Diego · Guitarra', '#303943', '#687b87', '#171e29', '#bd4d42', '#ffb18a', '#241b20', '#765044', '#d59a78', '#ffcf9f', '#a36555', '#344354', '#242a34', 'guitar'),
|
||||
'drummer': Look('Iván · Batería', '#20252d', '#4a5059', '#10151d', '#c44c42', '#f3b18a', '#11151d', '#555866', '#c98c68', '#f0be8e', '#905948', '#293044', '#202630', 'drums'),
|
||||
'bassist': Look('Fer · Bajo', '#282633', '#65556d', '#171722', '#5ba889', '#b8e8c7', '#17141c', '#6b5868', '#ae7c60', '#e8b58c', '#825044', '#292a38', '#27232f', 'bass'),
|
||||
'singer': Look('Héctor · Voz', '#242b30', '#58636a', '#11191f', '#d39b45', '#ffe0a0', '#b68a43', '#f4d887', '#d39c75', '#f4c8a0', '#a56f58', '#34333d', '#20232a', 'mic'),
|
||||
'roadie': Look('Roadie', '#385a5d', '#618c88', '#273c4e', '#dca85e', '#ffda91', '#282c36', '#77777b', '#d1a184', '#f3c8a4', '#996a5f', '#3f4655', '#343d4b', 'roadie'),
|
||||
'pogo_fan': Look('Fan del pogo', '#65436a', '#a66394', '#3b2c53', '#f3a14e', '#ffcf79', '#cb346d', '#f58ca9', '#d1a07f', '#f4caa4', '#996858', '#39415a', '#a84e55', 'punk'),
|
||||
'backstage_guard': Look('Guarda', '#3b465c', '#74839a', '#252d40', '#e2a851', '#ffe3a1', '#272a34', '#666b7a', '#aa8269', '#d7ae89', '#856455', '#343947', '#303642', 'guard'),
|
||||
@@ -134,13 +134,36 @@ def pose_parameters(name: str, frame: int):
|
||||
|
||||
|
||||
def draw_hair_back(ink: Ink, look: Look, h: float) -> None:
|
||||
if look.kind == 'bass':
|
||||
ink.path(f'M 22 {10+h:.1f} Q 15 {14+h:.1f} 20 {30+h:.1f} L 24 {34+h:.1f} '
|
||||
f'Q 27 {28+h:.1f} 29 {24+h:.1f} L 40 {25+h:.1f} Q 48 {34+h:.1f} 46 {15+h:.1f} '
|
||||
f'Q 39 {6+h:.1f} 22 {10+h:.1f} Z', look.hair, '#151925', 1.5)
|
||||
for x,y in ((20,21),(20.5,28),(44,25),(43,31)):
|
||||
ink.path(f'M {x} {y+h:.1f} q -2 3 1 5', 'none', look.hair_light, 1.1)
|
||||
elif look.kind in ('guitar','rival','roadie'):
|
||||
# Siluetas distintas y legibles: melena de Diego, pelo liso de Iván,
|
||||
# rizos de Fer y melena rubia de Héctor.
|
||||
if look.kind == 'guitar':
|
||||
ink.path(f'M 24 {11+h:.1f} Q 16 {14+h:.1f} 19 {27+h:.1f} L 17 {40+h:.1f} '
|
||||
f'Q 22 {43+h:.1f} 25 {34+h:.1f} L 28 {27+h:.1f} L 40 {25+h:.1f} '
|
||||
f'Q 47 {34+h:.1f} 46 {14+h:.1f} Q 37 {5+h:.1f} 24 {11+h:.1f} Z',
|
||||
look.hair, '#11151e', 1.5)
|
||||
for d in ('M 21 22 q -2 8 1 14','M 25 25 q -2 8 1 13','M 43 23 q 3 8 0 13'):
|
||||
ink.path(d.replace(' ', ' '), 'none', look.hair_light, 1.1, f'transform="translate(0 {h:.1f})"')
|
||||
elif look.kind == 'drums':
|
||||
ink.path(f'M 23 {10+h:.1f} Q 17 {16+h:.1f} 21 {30+h:.1f} L 22 {38+h:.1f} '
|
||||
f'L 27 {31+h:.1f} L 28 {18+h:.1f} L 39 {17+h:.1f} L 42 {36+h:.1f} '
|
||||
f'L 46 {39+h:.1f} Q 49 {17+h:.1f} 39 {9+h:.1f} Z', look.hair, '#10141c', 1.4)
|
||||
for x in (22,25,42,45):
|
||||
ink.path(f'M {x} {23+h:.1f} q -1 7 1 11', 'none', look.hair_light, .8)
|
||||
elif look.kind == 'bass':
|
||||
ink.path(f'M 22 {10+h:.1f} Q 15 {14+h:.1f} 19 {27+h:.1f} L 23 {34+h:.1f} '
|
||||
f'L 27 {27+h:.1f} L 40 {25+h:.1f} Q 48 {34+h:.1f} 46 {14+h:.1f} '
|
||||
f'Q 38 {5+h:.1f} 22 {10+h:.1f} Z', look.hair, '#11151e', 1.5)
|
||||
for x,y in ((20,17),(23,13),(27,11),(39,11),(44,17),(43,23),(22,24)):
|
||||
ink.circle(x, y+h, 2.3, look.hair, f'stroke="#11151e" stroke-width=".7"')
|
||||
ink.circle(x-.6, y-1+h, .65, look.hair_light)
|
||||
elif look.kind == 'mic':
|
||||
ink.path(f'M 24 {10+h:.1f} Q 17 {13+h:.1f} 20 {28+h:.1f} L 18 {39+h:.1f} '
|
||||
f'Q 24 {43+h:.1f} 27 {31+h:.1f} L 29 {20+h:.1f} L 39 {19+h:.1f} '
|
||||
f'Q 45 {31+h:.1f} 46 {39+h:.1f} L 49 {34+h:.1f} Q 48 {14+h:.1f} 39 {8+h:.1f} Z',
|
||||
look.hair, '#34251d', 1.5)
|
||||
for d in ('M 22 22 q -1 8 2 13','M 25 23 q -1 8 2 12','M 43 21 q 3 8 3 13'):
|
||||
ink.path(d, 'none', look.hair_light, 1.0, f'transform="translate(0 {h:.1f})"')
|
||||
elif look.kind in ('rival','roadie'):
|
||||
ink.path(f'M 25 {11+h:.1f} Q 19 {10+h:.1f} 20 {21+h:.1f} L 23 {32+h:.1f} '
|
||||
f'L 26 {27+h:.1f} L 40 {24+h:.1f} L 43 {32+h:.1f} '
|
||||
f'Q 48 {13+h:.1f} 38 {8+h:.1f} Z', look.hair, '#121621', 1.2)
|
||||
@@ -195,6 +218,16 @@ def draw_head(ink: Ink, look: Look, bob: float, tilt: float, pose: str) -> None:
|
||||
ink.path(f'M 26 {16+y:.1f} Q 24 {19+y:.1f} 26 {23+y:.1f}', 'none', look.skin_light, 1.2, 'opacity=".7"')
|
||||
ink.ellipse(24, 20+y, 1.6, 3.0, look.skin_shadow, '#191a26', .8)
|
||||
draw_hair_front(ink, look, y)
|
||||
if look.kind == 'guitar':
|
||||
# Barba abundante y bigote: rasgo principal de Diego.
|
||||
ink.path(f'M 25 {22+y:.1f} Q 27 {26+y:.1f} 29 {26+y:.1f} Q 32 {30+y:.1f} 35 {29+y:.1f} '
|
||||
f'Q 40 {29+y:.1f} 41 {23+y:.1f} L 40 {28+y:.1f} Q 38 {34+y:.1f} 32 {34+y:.1f} '
|
||||
f'Q 26 {32+y:.1f} 25 {27+y:.1f} Z', '#302329', '#17151d', 1.0)
|
||||
ink.path(f'M 27 {27+y:.1f} q 3 3 5 2 M 35 {29+y:.1f} q 3 -1 4 -3', 'none', '#795044', .8)
|
||||
elif look.kind == 'bass':
|
||||
# Rizo pequeño junto a las sienes para distinguirlo de la melena lisa.
|
||||
for x in (22,24,42,44):
|
||||
ink.circle(x, 19+y, 1.6, look.hair, 'stroke="#11151e" stroke-width=".45"')
|
||||
# Ojos ligeramente en perfil y cejas expresivas, sin pixeles cuadrados.
|
||||
ink.path(f'M 29 {19+y:.1f} l 3 -.7 M 36 {19+y:.1f} l 2 .2', 'none', '#312531', 1.3)
|
||||
ink.ellipse(30.6, 20.8+y, .72, 1.0, '#151822')
|
||||
@@ -240,6 +273,54 @@ def draw_torso(ink: Ink, look: Look, bob: float, tilt: float, is_enemy: bool) ->
|
||||
ink.path(f'M 28 {39+y:.1f} l 9 0', 'none', look.accent, 1.0)
|
||||
if look.kind == 'tech':
|
||||
ink.path(f'M 36 {32+y:.1f} l 4 1 -2 5 -4 -1 Z', look.accent_light, '#1a2329', .6)
|
||||
if look.kind == 'guitar':
|
||||
# Chaleco vaquero oscuro abierto, costuras, bolsillos y remaches.
|
||||
ink.path(f'M 25 {30+y:.1f} L 29 {32+y:.1f} L 31 {42+y:.1f} L 27 {43+y:.1f} Z', '#354654', '#151c26', .8)
|
||||
ink.path(f'M 39 {30+y:.1f} L 35 {32+y:.1f} L 33 {42+y:.1f} L 38 {43+y:.1f} Z', '#253440', '#151c26', .8)
|
||||
ink.path(f'M 27 {37+y:.1f} l 3 0 M 35 {37+y:.1f} l 3 0', 'none', '#91a0a3', .65)
|
||||
for x in (28,37): ink.circle(x, 33+y, .65, '#c3a16e')
|
||||
elif look.kind == 'drums':
|
||||
# Camiseta negra de banda con estampado rojo y pulsera de batería.
|
||||
ink.path(f'M 28 {33+y:.1f} l 4 -2 4 2 -2 4 -4 0 Z', '#a33d3b', '#11151d', .7)
|
||||
ink.path(f'M 30 {35+y:.1f} l 4 0', 'none', '#e5b07d', .6)
|
||||
ink.path(f'M 39 {39+y:.1f} l 2 1', 'none', '#c44c42', 1.5)
|
||||
elif look.kind == 'bass':
|
||||
# Cuero oscuro, cadena y herrajes metálicos.
|
||||
ink.path(f'M 27 {31+y:.1f} L 31 {34+y:.1f} L 29 {42+y:.1f}', 'none', '#a5a0ad', .8)
|
||||
ink.path(f'M 36 {31+y:.1f} l -3 5 4 5', 'none', '#b8e8c7', .65)
|
||||
for x in (27,38): ink.circle(x, 40+y, .7, '#c7c4bf')
|
||||
elif look.kind == 'mic':
|
||||
# Chaqueta negra con solapas y hebillas doradas.
|
||||
ink.path(f'M 27 {30+y:.1f} L 32 {34+y:.1f} L 30 {39+y:.1f} L 26 {34+y:.1f} Z', '#171e25', '#10151c', .8)
|
||||
ink.path(f'M 37 {30+y:.1f} L 33 {34+y:.1f} L 36 {39+y:.1f} L 39 {34+y:.1f} Z', '#303b40', '#10151c', .8)
|
||||
ink.path(f'M 28 {40+y:.1f} l 8 0', 'none', '#c69b54', 1.0)
|
||||
ink.circle(36, 40+y, 1.0, '#e4c276')
|
||||
if look.kind == 'roadie':
|
||||
# Chaleco de carga y correas de herramientas: silueta de personal tecnico.
|
||||
ink.path(f'M 26 {30+y:.1f} L 29 {32+y:.1f} L 30 {43+y:.1f} L 26 {42+y:.1f} Z', '#34494d', '#18252d', .8)
|
||||
ink.path(f'M 38 {30+y:.1f} L 35 {32+y:.1f} L 34 {43+y:.1f} L 39 {42+y:.1f} Z', '#2b4147', '#18252d', .8)
|
||||
ink.path(f'M 27 {37+y:.1f} l 4 0 0 4 -4 0 Z M 35 {37+y:.1f} l 3 0 0 4 -3 0 Z', '#dca85e', '#18252d', .7)
|
||||
elif look.kind == 'punk':
|
||||
# Camiseta de concierto rota, parche cosido y muñequeras.
|
||||
ink.path(f'M 27 {33+y:.1f} l 5 2 -2 5 -4 -2 Z', '#4a273f', '#201925', .8)
|
||||
ink.path(f'M 34 {34+y:.1f} l 4 0 -1 4 -3 0 Z', look.accent, '#201925', .6)
|
||||
ink.path(f'M 40 {39+y:.1f} l 2 0', 'none', look.accent_light, 1.8)
|
||||
elif look.kind == 'guard':
|
||||
# Chaleco acolchado, placa y cinturón de seguridad.
|
||||
ink.path(f'M 25 {31+y:.1f} L 29 {32+y:.1f} L 30 {43+y:.1f} L 25 {42+y:.1f} Z', '#30394b', '#171d2a', .9)
|
||||
ink.path(f'M 39 {31+y:.1f} L 35 {32+y:.1f} L 34 {43+y:.1f} L 39 {42+y:.1f} Z', '#252e40', '#171d2a', .9)
|
||||
ink.path(f'M 29 {34+y:.1f} l 6 0 0 5 -6 0 Z', '#c28f48', '#171d2a', .7)
|
||||
ink.path(f'M 27 {42+y:.1f} l 10 0', 'none', '#b5a18a', 1.2)
|
||||
elif look.kind == 'rival':
|
||||
# Chaqueta de escenario del rival con hombrera y correas cruzadas.
|
||||
ink.path(f'M 26 {31+y:.1f} L 30 {33+y:.1f} L 32 {42+y:.1f}', 'none', '#9ca7ad', 1.0)
|
||||
ink.path(f'M 38 {30+y:.1f} l 4 3 -3 4 -4 -3 Z', '#526d80', '#1c2835', .8)
|
||||
ink.circle(39, 34+y, 1.0, look.accent_light)
|
||||
elif look.kind == 'tech':
|
||||
# Arnés de cableado, panel de control y leds de feedback.
|
||||
ink.path(f'M 26 {31+y:.1f} L 30 {34+y:.1f} L 28 {42+y:.1f} M 38 {31+y:.1f} L 34 {34+y:.1f} L 37 {42+y:.1f}', 'none', '#9ab5ae', .9)
|
||||
ink.path(f'M 31 {35+y:.1f} l 5 0 0 5 -5 0 Z', '#263d43', look.accent, .7)
|
||||
ink.circle(33, 37+y, .8, look.accent_light)
|
||||
if is_enemy:
|
||||
ink.path(f'M 28 {40+y:.1f} l 9 0', 'none', look.accent, .75, 'opacity=".65"')
|
||||
|
||||
@@ -289,33 +370,42 @@ def draw_arms(ink: Ink, look: Look, bob: float, stride: float, pose: str,
|
||||
|
||||
|
||||
def draw_instrument(ink: Ink, look: Look, pose: str, frame: int, bob: float) -> None:
|
||||
# Accesorios con lectura clara y volumen, visibles sin alterar las hitboxes.
|
||||
if look.kind in ('guitar', 'bass','rival'):
|
||||
if pose not in ('special','special_start','special_end','attack'):
|
||||
return
|
||||
body = '#d84d53' if look.kind == 'guitar' else ('#5daa88' if look.kind == 'bass' else '#9e5cba')
|
||||
light = '#ff9c81' if look.kind == 'guitar' else ('#c5e5a5' if look.kind == 'bass' else '#e3a9db')
|
||||
wobble = .7*sin(frame*pi/3)
|
||||
# Instrumentos solo en poses de ataque/especial para no ocultar la silueta base.
|
||||
active = pose in ('special', 'special_start', 'special_end', 'attack', 'ground_pound')
|
||||
if look.kind in ('guitar', 'bass', 'rival') and active:
|
||||
is_bass = look.kind == 'bass'
|
||||
body = '#b63e3e' if look.kind == 'guitar' else ('#438b70' if is_bass else '#8250a0')
|
||||
light = '#ffad8e' if look.kind == 'guitar' else ('#b7e6c4' if is_bass else '#d9a7e8')
|
||||
wobble = .65*sin(frame*pi/3)
|
||||
ink.add(f'<g transform="translate(0 {bob+wobble:.2f}) rotate(-20 35 38)">')
|
||||
ink.path('M 30 37 Q 24 36 24 42 Q 21 48 26 50 Q 31 53 35 48 '
|
||||
'Q 40 52 44 45 Q 46 38 40 36 L 37 39 Z', body, '#1a1d2c', 2.3)
|
||||
ink.path('M 28 43 Q 31 39 36 42 Q 41 39 41 45', 'none', light, 1.3)
|
||||
ink.path('M 34 42 L 42 15 L 46 14 L 39 43 Z', '#ab885e', '#201f2b', 1.25)
|
||||
for offset in (0,1.5,3):
|
||||
ink.path(f'M {36+offset*.5:.1f} 43 L {43+offset*.35:.1f} 17', 'none', '#efe2c1', .38)
|
||||
ink.ellipse(35, 46, 2, 1.5, '#1b1c2a')
|
||||
ink.path('M 39 36 L 42 36', 'none', '#e9d4a2', .85)
|
||||
# Cuerpo de guitarra/bajo con doble cutaway, golpeador y puente.
|
||||
ink.path('M 31 36 Q 25 33 23 39 Q 20 46 26 50 Q 31 53 35 48 '
|
||||
'Q 40 52 44 45 Q 46 38 40 35 L 37 39 Z', body, '#171b25', 2.0)
|
||||
ink.path('M 26 41 Q 30 37 35 41 Q 40 37 43 42 Q 42 48 36 49 Q 31 46 26 48 Z', light, '#392b34', .7, 'opacity=".58"')
|
||||
ink.path('M 34 42 L 42 14 L 46 13 L 39 43 Z', '#98734f', '#1d1c24', 1.3)
|
||||
ink.path('M 41 17 L 47 12 L 49 15 L 44 20 Z', '#c5a77b', '#1d1c24', 1.0)
|
||||
# 4 cuerdas en el bajo, 6 en la guitarra; ambas claramente legibles.
|
||||
count = 4 if is_bass else 6
|
||||
for j in range(count):
|
||||
off = j * (1.1 if is_bass else .72)
|
||||
ink.path(f'M {35+off*.12:.1f} 44 L {43+off*.28:.1f} 16', 'none', '#f4e8ca', .42)
|
||||
ink.path('M 29 44 L 39 42 M 29 46 L 39 44', 'none', '#e6d6b3', .8)
|
||||
ink.path('M 34 42 L 40 41', 'none', '#1d202a', 1.3)
|
||||
ink.add('</g>')
|
||||
elif look.kind == 'mic' and pose in ('special','special_start','special_end'):
|
||||
ink.path(f'M 45 {20+bob:.1f} L 45 {9+bob:.1f}', 'none', '#171c28', 2.8)
|
||||
ink.path(f'M 45 {20+bob:.1f} L 45 {10+bob:.1f}', 'none', '#a5bbc4', 1.4)
|
||||
ink.ellipse(45, 7.5+bob, 3.5, 4.4, '#cfd6d4', '#222432', 1.2)
|
||||
ink.path(f'M 42.5 {7+bob:.1f} q 2 -3 5 0', 'none', '#f8f1e0', .8)
|
||||
ink.path(f'M 45 {23+bob:.1f} Q 49 {38+bob:.1f} 48 {45+bob:.1f}', 'none', '#232b33', 1)
|
||||
elif look.kind == 'drums' and pose in ('special','special_start','special_end','ground_pound'):
|
||||
ink.path(f'M 18 {22+bob:.1f} L 12 {6+bob:.1f} M 45 {22+bob:.1f} L 51 {6+bob:.1f}',
|
||||
'none', '#d6b47c', 2.3)
|
||||
ink.path(f'M 12 {7+bob:.1f} l -1 -3 M 51 {7+bob:.1f} l 1 -3', 'none', '#fff0c5', 1.0)
|
||||
elif look.kind == 'mic' and active:
|
||||
ink.path(f'M 45 {22+bob:.1f} L 45 {8+bob:.1f}', 'none', '#171c28', 3.0)
|
||||
ink.path(f'M 45 {22+bob:.1f} L 45 {8+bob:.1f}', 'none', '#b8c1c5', 1.3)
|
||||
ink.ellipse(45, 7.5+bob, 3.7, 4.5, '#cbd2d2', '#222432', 1.2)
|
||||
for yy in (6,8,10): ink.path(f'M 42 {yy+bob:.1f} q 3 1 6 0', 'none', '#707e87', .45)
|
||||
ink.path(f'M 45 {24+bob:.1f} Q 50 {36+bob:.1f} 48 {45+bob:.1f}', 'none', '#232b33', 1.0)
|
||||
elif look.kind == 'drums' and active:
|
||||
# Dos baquetas cruzadas; nunca aparecen en Fer.
|
||||
ink.path(f'M 18 {27+bob:.1f} L 11 {5+bob:.1f} M 45 {27+bob:.1f} L 52 {5+bob:.1f}',
|
||||
'none', '#171923', 3.0)
|
||||
ink.path(f'M 18 {27+bob:.1f} L 11 {5+bob:.1f} M 45 {27+bob:.1f} L 52 {5+bob:.1f}',
|
||||
'none', '#e2c38a', 1.5)
|
||||
ink.ellipse(11, 5+bob, 1.3, 2.1, '#fff0c5')
|
||||
ink.ellipse(52, 5+bob, 1.3, 2.1, '#fff0c5')
|
||||
elif look.kind == 'roadie':
|
||||
ink.path(f'M 24 {42+bob:.1f} L 41 {42+bob:.1f}', 'none', '#c39a5c', 2)
|
||||
ink.path(f'M 38 {40+bob:.1f} l 4 0 0 6 -4 0 Z', look.shadow, '#1a1c29', 1)
|
||||
|
||||
Reference in new issue
Block a user