# codervipersan/simulation_3_blue_one_brown architecture

> Architecture diagram of the GitHub repository codervipersan/simulation_3_blue_one_brown, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/codervipersan/simulation_3_blue_one_brown
- Repository: https://github.com/codervipersan/simulation_3_blue_one_brown

## Overview

This repository produces branded Manim science videos: a timestamp-synced channel introduction and narrated qubit/complex-number scenes. The workflow pairs scene content with transcript or narration, applies shared stage and visual conventions, and renders through Manim. Audio generation is represented as a supporting content stage. The README and excerpts document the main relationships; video assets in the tree are outputs, not runtime components.

Main entry points: [`intro_video2.py`](https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/intro_video2.py) (Channel intro animation), [`scenes.py`](https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/scenes.py) (Qubit and math scenes), [`video_settings.py`](https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/video_settings.py) (Shared video settings), [`generate_audio.py`](https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/generate_audio.py) (Narration synthesis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Video content"]
  node_intro["Channel intro animation<br/>[intro_video2.py]"]
  node_intro_script["Intro transcript and timing"]
  node_qubit_scenes["Qubit and math scenes<br/>[scenes.py]"]
end

subgraph group_audio["Narration and audio"]
  node_narration["Narration lines<br/>[narration.py]"]
  node_audio_generator["Narration synthesis<br/>[generate_audio.py]"]
end

subgraph group_framework["Shared scene framework"]
  node_project_scene["Scene stage helpers<br/>[project_scene.py]"]
end

subgraph group_rendering["Render configuration"]
  node_settings["Shared video settings<br/>[video_settings.py]"]
end

node_speech_service{{"Edge TTS"}}
node_manim{{"Manim renderer"}}
node_video_output["Rendered videos"]
node_author(("Video author"))

node_intro -->|"uses transcript"| node_intro_script
node_intro -->|"subclasses"| node_project_scene
node_intro -->|"uses palette"| node_settings
node_qubit_scenes -->|"reads audio paths"| node_narration
node_qubit_scenes -->|"uses settings"| node_settings
node_audio_generator -->|"reads lines"| node_narration
node_audio_generator -->|"synthesizes speech"| node_speech_service
node_project_scene -->|"reads defaults"| node_settings
node_author -->|"requests render"| node_manim
node_manim -->|"renders scene"| node_intro
node_manim -->|"renders scenes"| node_qubit_scenes
node_manim -->|"produces video"| node_video_output

click node_intro "https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/intro_video2.py"
click node_intro_script "https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/intro_video2_script.py"
click node_qubit_scenes "https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/scenes.py"
click node_narration "https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/narration.py"
click node_audio_generator "https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/generate_audio.py"
click node_project_scene "https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/project_scene.py"
click node_settings "https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/video_settings.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_intro,node_intro_script,node_qubit_scenes toneBlue
class node_narration,node_audio_generator toneAmber
class node_project_scene toneMint
class node_settings toneRose
class node_speech_service,node_manim,node_video_output,node_author toneIndigo
```

## Components

### Video content

- [Channel intro animation](https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/intro_video2.py): `intro_video2.py`
- [Intro transcript and timing](https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/intro_video2_script.py): `intro_video2_script.py`
- [Qubit and math scenes](https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/scenes.py): `scenes.py`

### Narration and audio

- [Narration lines](https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/narration.py): `narration.py`
- [Narration synthesis](https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/generate_audio.py): `generate_audio.py`

### Shared scene framework

- [Scene stage helpers](https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/project_scene.py): `project_scene.py`

### Render configuration

- [Shared video settings](https://github.com/codervipersan/simulation_3_blue_one_brown/blob/main2/video_settings.py): `video_settings.py`

### Other components

- **Edge TTS**
- **Manim renderer**
- **Rendered videos**
- **Video author**

## Connections

- Channel intro animation → Intro transcript and timing: uses transcript (evidence: `intro_video2.py`)
- Channel intro animation → Scene stage helpers: subclasses (evidence: `intro_video2.py`)
- Channel intro animation → Shared video settings: uses palette (evidence: `intro_video2.py`)
- Qubit and math scenes → Narration lines: reads audio paths (evidence: `scenes.py`)
- Qubit and math scenes → Shared video settings: uses settings (evidence: `scenes.py`)
- Narration synthesis → Narration lines: reads lines (evidence: `generate_audio.py`)
- Narration synthesis → Edge TTS: synthesizes speech (evidence: `generate_audio.py`)
- Scene stage helpers → Shared video settings: reads defaults (evidence: `project_scene.py`)
- Video author → Manim renderer: requests render (evidence: `README.md`)
- Manim renderer → Channel intro animation: renders scene (evidence: `README.md`)
- Manim renderer → Qubit and math scenes: renders scenes (evidence: `README.md`)
- Manim renderer → Rendered videos: produces video (evidence: `README.md`)
