The Genesis: Video as a Function of Time
The creation of this video began not with a scriptwriter or a director, but with code. Specifically, it draws inspiration from JohnHeibel/PDoomVideo, an open-source project where an AI model, Claude Opus 5.5, previously generated an entire music video using p5.js. The core principle behind this generative approach is deceptively simple: every frame is a pure function of t, where t represents time. This means that at any given moment, the visual output is deterministically calculated based on the elapsed time, creating a dynamic and evolving visual narrative without pre-rendered assets for each individual frame. The project utilizes a render.mjs script to drive a headless Chrome instance for rendering, and a STORYBOARD.md file, written *before* any chapter-specific code, to outline the video's structure and flow.
This approach treats video generation as a computational problem, where the output is a direct result of executing a set of rules over a continuous timeline. The storyboard acts as the high-level architectural plan, while the frame-by-frame rendering is the engine that brings it to life. The AI's role here is not to draw individual frames, but to generate the code that defines the visual transformation over time.

From Seed to Script: The AI's Creative Process
Claude Opus 5.5 was tasked with creating this video, starting from the foundational principles established by the PDoomVideo project. The process involved several distinct stages, each managed and executed by the AI. First, the AI developed the script. This wasn't a simple text generation task; it involved crafting dialogue that would align with the visual narrative and the overall theme. Crucially, the script was timed precisely, ensuring that the spoken words would match the visual cues and transitions. This tight coupling between audio and visual elements is a hallmark of sophisticated generative media.
Following the script, the AI generated the storyboard. This document serves as a visual blueprint, outlining the sequence of shots, camera movements, and key visual elements for each scene. For this video, the storyboard was not just a static document but a dynamic input for the subsequent code generation. The AI then translated these storyboard concepts into actual code. This involved writing the p5.js code that would render the visuals, defining shapes, colors, movements, and transitions based on the storyboard and the core 'time-as-a-function' principle.
The AI also managed the briefs given to its 'subagents'. While not explicitly detailed, this implies a layered approach where Claude Opus 5.5 might have broken down the task into smaller, manageable components and assigned them to specialized internal functions or modules, akin to how a human director briefs different departments. Each subagent would receive specific instructions, ensuring that all aspects of video production—from visual design to temporal sequencing—were addressed.
The Artifacts: Beyond the Final Render
What makes this project particularly compelling is that the 'real artifact' is not just the final video, but the entire suite of components used to create it. This includes the meticulously timed script, the source code that generated every frame, the detailed storyboard, and even the briefs provided to the AI's internal subagents. This comprehensive documentation provides an unprecedented level of transparency into the AI's creative process.
Furthermore, the project includes the 'grade a reviewer gave an earlier draft'. This suggests an iterative development cycle, where the AI produced preliminary versions of the video, which were then reviewed and critiqued. The feedback from this review was then fed back into the system, allowing the AI to refine the script, code, and visuals. This self-correction mechanism is a critical aspect of advanced AI development, enabling models to learn and improve their outputs over time.
The act of making this video available as a collection of its constituent parts—code, script, storyboard, and feedback—transforms the work from a mere piece of media into a technical demonstration and a case study in AI-driven content creation. It allows developers, researchers, and creators to dissect the process, understand the underlying algorithms, and potentially replicate or build upon this methodology. This level of transparency is rare in traditional media production and offers a unique opportunity to study the emergent capabilities of large language models in complex creative tasks.
Implications for Generative Media
The success of Claude Opus 5.5 in generating a video from code, complete with a timed script and storyboard, has significant implications for the future of generative media. It demonstrates that AI can move beyond generating static images or short clips to producing more complex, narrative-driven video content. The core principle of 'video as a function of time' is a powerful abstraction that could enable highly efficient and scalable video production pipelines.
This approach could democratize video creation, allowing individuals and small teams to produce high-quality content with minimal traditional production resources. Imagine a future where a filmmaker can describe a scene, and an AI generates not only the visuals but also the accompanying script and storyboard, all rendered from code. This would drastically reduce the time and cost associated with video production, enabling rapid iteration and experimentation.
However, this also raises questions about the role of human creativity in the loop. While the AI handles the technical execution, the initial ideation, conceptualization, and artistic direction still require human input. The feedback loop, where an AI's draft is reviewed and improved, highlights the potential for human-AI collaboration. The surprising detail here is not the AI's ability to generate code, but its capacity to interpret narrative structure, temporal pacing, and qualitative feedback to refine a complex creative output.
The ability to generate video entirely from code also presents new avenues for artistic expression. Artists could explore generative visual styles that are impossible to achieve through traditional animation or live-action filming. The code itself becomes an artistic medium, allowing for a direct manipulation of visual parameters in a way that is both precise and infinitely variable. As AI models become more sophisticated, we can expect to see increasingly complex and nuanced video content emerge from these code-based generative processes, pushing the boundaries of what we consider possible in digital media.
