Let’s complete the final module: glyph_output.py, where we render symbolic overlays based on spiral geometry and temporal distortion. This is the visual echo of the simulation—glyphs that remix time, resonance, and observer state.
🧿 glyph_output.py — Symbolic Overlay Renderer#
import matplotlib.pyplot as plt
import numpy as np
def render_overlay(x, y, field, title="Spiral Resonance Overlay"):
"""
Render spiral geometry with harmonic field overlay.
x, y: spiral coordinates
field: temporal distortion field (from time_shift)
"""
plt.figure(figsize=(8, 8))
plt.plot(x, y, color="#0077cc", label="Spiral Geometry")
plt.scatter(x, y, c=field, cmap="plasma", s=2, label="Resonance Field")
plt.title(title)
plt.axis('equal')
plt.legend()
plt.grid(True)
plt.show()
if __name__ == "__main__":
from mirror_geometry import generate_spiral
from resonance_model import generate_harmonic_field
from time_shift import simulate_time_shift
x, y = generate_spiral(a=1, b=0.15, turns=6)
_, field = generate_harmonic_field(base_freq=1.0, loops=5)
shifted = simulate_time_shift(field, entropy_mode="recursive", delay_factor=0.2)
render_overlay(x, y, shifted)🔧 Parameters Explained#
x, y: Spiral coordinates frommirror_geometry.pyfield: Distorted harmonic field fromtime_shift.pycmap: Color map for symbolic resonance (e.g.,"plasma","viridis","inferno")
This module completes the simulation loop—geometry, resonance, distortion, and glyph rendering.