La plaza en la portada y cinco bocetos de plazas y cruces

This commit is contained in:
hacklab 2026-10-14 11:58:17 +02:00
parent e81054f64f
commit 56b74e7ac8
11 changed files with 427 additions and 930 deletions

View file

@ -3,7 +3,6 @@
# De cada portal sale un reguero de un color (cada lucha) y todos se juntan en la piña,
# que en el centro arde en colores de fuego.
import sys, random, math, os
OUT = sys.argv[1]
INK = "#111"
FUEGO = ["#fffbe6", "#ffe066", "#ffb627", "#ff7b1c", "#f04e23", "#c8102e"] # del centro hacia fuera
LUCHAS = ["#8e44c9", "#3b5bdb", "#14965a", "#d6336c", "#2a9d8f", "#5b2a86"] # un color por reguero
@ -19,6 +18,8 @@ DEFS = '''<defs>
<linearGradient id="gv" x1="0" y1="0" x2="0" y2="1"><stop offset=".02" stop-color="#000"/><stop offset=".25" stop-color="#fff"/></linearGradient>
<mask id="derecha" maskUnits="userSpaceOnUse" x="0" y="0" width="1600" height="900"><rect width="1600" height="900" fill="url(#gd)"/></mask>
<mask id="arriba" maskUnits="userSpaceOnUse" x="0" y="0" width="1600" height="900"><rect width="1600" height="900" fill="url(#gv)"/></mask>
<linearGradient id="gl" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#000"/><stop offset=".12" stop-color="#fff"/><stop offset=".88" stop-color="#fff"/><stop offset="1" stop-color="#000"/></linearGradient>
<mask id="lados" maskUnits="userSpaceOnUse" x="0" y="0" width="1600" height="900"><rect width="1600" height="900" fill="url(#gl)"/></mask>
</defs>'''
class Calle:
@ -200,6 +201,8 @@ def b5():
c.gente((-.5, 12.5, 2.2, 3.5, 9000, 2.8), regueros(c, (4.0, 7.0, 17.0)), extra=lateral)
return c
os.makedirs(OUT, exist_ok=True)
for n, f in enumerate([b1, b2, b3, b4, b5], 1):
open(f"{OUT}/boceto-{n}.svg", "w").write(f().svg())
if __name__ == "__main__":
OUT = sys.argv[1]
os.makedirs(OUT, exist_ok=True)
for n, f in enumerate([b1, b2, b3, b4, b5], 1):
open(f"{OUT}/boceto-{n}.svg", "w").write(f().svg())