# davidpelayo/antigravity-animation architecture

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

- Interactive diagram: https://gitdiagram.com/davidpelayo/antigravity-animation
- Repository: https://github.com/davidpelayo/antigravity-animation

## Overview

Antigravity Animation is a pair of browser-based, URL-configurable particle animations. The user opens either HTML page with parameters; the animation simulates particle motion and renders it in the browser. The pattern version adds formation behavior and optimized sprite rendering. The README documents these capabilities, but no source excerpts were provided, so the internal relationships shown here rely on that documentation.

Main entry points: [`antigravity-pattern.html`](https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-pattern.html) (Pattern Animation), [`antigravity-basic.html`](https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-basic.html) (Basic Animation)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_browser["Browser"]
node_basic["Basic Animation"]
node_basic_physics["Particle Physics"]
node_basic_render["Canvas Rendering"]
node_pattern["Pattern Animation"]
node_pattern_formation["Pattern Formation"]
node_pattern_physics["Particle Physics"]
node_pattern_render["Sprite Rendering"]

node_user -->|"opens with parameters"| node_basic
node_basic -->|"runs in"| node_browser
node_basic -->|"simulates motion"| node_basic_physics
node_basic -->|"renders particles"| node_basic_render
node_basic_physics -->|"provides positions"| node_basic_render
node_user -->|"opens with parameters"| node_pattern
node_pattern -->|"runs in"| node_browser
node_pattern -->|"enables patterns"| node_pattern_formation
node_pattern -->|"simulates motion"| node_pattern_physics
node_pattern -->|"renders particles"| node_pattern_render
node_pattern_formation -->|"guides particles"| node_pattern_physics
node_pattern_physics -->|"provides positions"| node_pattern_render

click node_basic "https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-basic.html"
click node_basic_physics "https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-basic.html"
click node_basic_render "https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-basic.html"
click node_pattern "https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-pattern.html"
click node_pattern_formation "https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-pattern.html"
click node_pattern_physics "https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-pattern.html"
click node_pattern_render "https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-pattern.html"

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_user,node_browser toneBlue
class node_basic,node_basic_physics,node_basic_render,node_pattern,node_pattern_formation,node_pattern_physics,node_pattern_render toneTeal
```

## Components

### Other components

- **User**
- **Browser**
- [Basic Animation](https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-basic.html): `antigravity-basic.html`
- [Particle Physics](https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-basic.html): `antigravity-basic.html`
- [Canvas Rendering](https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-basic.html): `antigravity-basic.html`
- [Pattern Animation](https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-pattern.html): `antigravity-pattern.html`
- [Pattern Formation](https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-pattern.html): `antigravity-pattern.html`
- [Particle Physics](https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-pattern.html): `antigravity-pattern.html`
- [Sprite Rendering](https://github.com/davidpelayo/antigravity-animation/blob/main/antigravity-pattern.html): `antigravity-pattern.html`

## Connections

- User → Basic Animation: opens with parameters (evidence: `README.md`)
- Basic Animation → Browser: runs in (evidence: `README.md`)
- Basic Animation → Particle Physics: simulates motion (evidence: `README.md`)
- Basic Animation → Canvas Rendering: renders particles (evidence: `README.md`)
- Particle Physics → Canvas Rendering: provides positions (evidence: `README.md`)
- User → Pattern Animation: opens with parameters (evidence: `README.md`)
- Pattern Animation → Browser: runs in (evidence: `README.md`)
- Pattern Animation → Pattern Formation: enables patterns (evidence: `README.md`)
- Pattern Animation → Particle Physics: simulates motion (evidence: `README.md`)
- Pattern Animation → Sprite Rendering: renders particles (evidence: `README.md`)
- Pattern Formation → Particle Physics: guides particles (evidence: `README.md`)
- Particle Physics → Sprite Rendering: provides positions (evidence: `README.md`)
