Visualization Engine
Rendering algorithm dynamics without coupling to algorithms.
“The Visualization Engine does not draw arrays or graphs. It stages algorithmic ideas.”
Structure-first rendering
Most visualizers draw each algorithm directly: Bubble Sort animation, Merge Sort animation, QuickSort animation, Dijkstra animation. AlgoLens rejects that model. The renderer draws structures, states, cursors, highlights, labels, overlays, and transitions. It does not know whether the underlying algorithm is Bubble Sort, Heap Sort, or a custom user implementation.
The Visualization Engine introduces a Scene Graph between the Universal Trace and the graphics backend. The trace describes what happened; the scene graph describes what should exist on screen; the backend decides whether to draw it through SVG, Canvas, WebGL, WebGPU, static export, or a future renderer. This separation protects the platform from web-graphics changes.
Universal renderers cover arrays, matrices, trees, graphs, stacks, queues, heaps, memory, timelines, and complexity curves. A layout engine computes responsive placement, a camera system supports zoom and focus, overlays add invariants and explanations, and exporters reuse the same scene for SVG, PNG, GIF, video, Markdown, PDF, and HTML replay.
Universal Trace ↓ Scene Graph ↓ Renderer ↓ Animation ↓ Interaction ↓ Export