# ibnoerizal/annimation architecture

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

- Interactive diagram: https://gitdiagram.com/ibnoerizal/annimation
- Repository: https://github.com/ibnoerizal/annimation

## Overview

This is a small Manim animation of k-means clustering. The script generates a fixed random point set, initializes and iterates the clustering algorithm, then animates points, centroids, and their assignments in a scene. The README identifies Manim as the rendering engine. Algorithm and visualization are separate responsibilities in one source file; the repository has no other product modules. The render connection is documented, but the invocation mechanism is not shown.

Main entry points: [`scene.py`](https://github.com/ibnoerizal/annimation/blob/main/scene.py) (K-means Scene)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_sample_data["Point Data<br/>[scene.py]"]
node_kmeans["K-means<br/>[scene.py]"]
node_scene["K-means Scene<br/>[scene.py]"]
node_manim["Manim Renderer"]

node_scene -->|"uses points"| node_sample_data
node_scene -->|"fits clusters"| node_kmeans
node_scene -->|"renders scene"| node_manim

click node_sample_data "https://github.com/ibnoerizal/annimation/blob/main/scene.py"
click node_kmeans "https://github.com/ibnoerizal/annimation/blob/main/scene.py"
click node_scene "https://github.com/ibnoerizal/annimation/blob/main/scene.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_sample_data,node_kmeans,node_scene toneTeal
class node_manim toneIndigo
```

## Components

### Other components

- [Point Data](https://github.com/ibnoerizal/annimation/blob/main/scene.py): `scene.py`
- [K-means](https://github.com/ibnoerizal/annimation/blob/main/scene.py): `scene.py`
- [K-means Scene](https://github.com/ibnoerizal/annimation/blob/main/scene.py): `scene.py`
- **Manim Renderer**

## Connections

- K-means Scene → Point Data: uses points (evidence: `scene.py`)
- K-means Scene → K-means: fits clusters (evidence: `scene.py`)
- K-means Scene → Manim Renderer: renders scene (evidence: `Readme.MD`)
