# nwuww/easingpathcalculator architecture

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

- Interactive diagram: https://gitdiagram.com/nwuww/easingpathcalculator
- Repository: https://github.com/nwuww/easingpathcalculator

## Overview

A Windows command-line tool for rhythm-game chart authors: users create named easing path groups by entering endpoints, duration, sampling density, and an easing type; the program generates sample points and exports them as text. The graph reflects documented commands and sampled calls. Program.cs is partial, so unsampled command and export details are included only where the README documents them; the live in-memory group list is not a durable database.

Main entry points: [`Program.cs`](https://github.com/nwuww/easingpathcalculator/blob/main/Program.cs) (CLI runtime), [`ArgHandler.cs`](https://github.com/nwuww/easingpathcalculator/blob/main/ArgHandler.cs) (Command handlers), [`Group.cs`](https://github.com/nwuww/easingpathcalculator/blob/main/Group.cs) (Path group), [`Utils.cs`](https://github.com/nwuww/easingpathcalculator/blob/main/Utils.cs) (Point preview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["Command interface"]
  node_runtime["CLI runtime<br/>[Program.cs]"]
  node_commands["Command handlers<br/>[ArgHandler.cs]"]
  node_input["Input parsing<br/>[Utils.cs]"]
end

subgraph group_domain["Path calculation"]
  node_group["Path group<br/>[Group.cs]"]
  node_easing["Easing functions<br/>[EasingCalc.cs]"]
  node_points["Sample points<br/>[Point.cs]"]
end

subgraph group_output["Export and utilities"]
  node_exports["Text export<br/>[Program.cs]"]
  node_editor["Point preview<br/>[Utils.cs]"]
  node_filesystem[("Local files")]
end

subgraph group_operations["Logging and extras"]
  node_logger["Logging<br/>[Log.cs]"]
  node_logfiles[("Log files")]
  node_extras["Easter eggs<br/>[Candies.cs]"]
end

node_user(("Chart author"))
node_explorer["Windows Explorer"]
node_browser["Web browser"]

node_user -->|"enters commands"| node_runtime
node_runtime -->|"dispatches group"| node_commands
node_runtime -->|"dispatches log"| node_commands
node_runtime -->|"dispatches clear"| node_commands
node_commands -->|"invokes group actions"| node_runtime
node_commands -->|"parses UID"| node_input
node_runtime -->|"creates groups"| node_group
node_group -->|"calculates easing"| node_easing
node_group -->|"creates samples"| node_points
node_runtime -->|"exports groups"| node_exports
node_exports -->|"writes text files"| node_filesystem
node_runtime -.->|"previews group"| node_editor
node_editor -->|"writes preview file"| node_filesystem
node_editor -->|"opens in editor"| node_explorer
node_runtime -->|"writes and flushes"| node_logger
node_commands -->|"sets log level"| node_logger
node_logger -->|"appends logs"| node_logfiles
node_runtime -->|"triggers easter eggs"| node_extras
node_extras -->|"opens URLs"| node_browser
node_commands -->|"opens directories"| node_explorer

click node_runtime "https://github.com/nwuww/easingpathcalculator/blob/main/Program.cs"
click node_commands "https://github.com/nwuww/easingpathcalculator/blob/main/ArgHandler.cs"
click node_input "https://github.com/nwuww/easingpathcalculator/blob/main/Utils.cs"
click node_group "https://github.com/nwuww/easingpathcalculator/blob/main/Group.cs"
click node_easing "https://github.com/nwuww/easingpathcalculator/blob/main/EasingCalc.cs"
click node_points "https://github.com/nwuww/easingpathcalculator/blob/main/Point.cs"
click node_exports "https://github.com/nwuww/easingpathcalculator/blob/main/Program.cs"
click node_editor "https://github.com/nwuww/easingpathcalculator/blob/main/Utils.cs"
click node_logger "https://github.com/nwuww/easingpathcalculator/blob/main/Log.cs"
click node_extras "https://github.com/nwuww/easingpathcalculator/blob/main/Candies.cs"

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_runtime,node_commands,node_input,node_browser toneBlue
class node_group,node_easing,node_points toneAmber
class node_exports,node_editor,node_filesystem toneMint
class node_logger,node_logfiles,node_extras toneRose
class node_user,node_explorer toneIndigo
```

## Components

### Command interface

- [CLI runtime](https://github.com/nwuww/easingpathcalculator/blob/main/Program.cs): `Program.cs`
- [Command handlers](https://github.com/nwuww/easingpathcalculator/blob/main/ArgHandler.cs): `ArgHandler.cs`
- [Input parsing](https://github.com/nwuww/easingpathcalculator/blob/main/Utils.cs): `Utils.cs`

### Path calculation

- [Path group](https://github.com/nwuww/easingpathcalculator/blob/main/Group.cs): `Group.cs`
- [Easing functions](https://github.com/nwuww/easingpathcalculator/blob/main/EasingCalc.cs): `EasingCalc.cs`
- [Sample points](https://github.com/nwuww/easingpathcalculator/blob/main/Point.cs): `Point.cs`

### Export and utilities

- [Text export](https://github.com/nwuww/easingpathcalculator/blob/main/Program.cs): `Program.cs`
- [Point preview](https://github.com/nwuww/easingpathcalculator/blob/main/Utils.cs): `Utils.cs`
- **Local files**

### Logging and extras

- [Logging](https://github.com/nwuww/easingpathcalculator/blob/main/Log.cs): `Log.cs`
- **Log files**
- [Easter eggs](https://github.com/nwuww/easingpathcalculator/blob/main/Candies.cs): `Candies.cs`

### Other components

- **Chart author**
- **Windows Explorer**
- **Web browser**

## Connections

- Chart author → CLI runtime: enters commands (evidence: `README.md`)
- CLI runtime → Command handlers: dispatches group (evidence: `Program.cs`)
- CLI runtime → Command handlers: dispatches log (evidence: `Program.cs`)
- CLI runtime → Command handlers: dispatches clear (evidence: `Program.cs`)
- Command handlers → CLI runtime: invokes group actions (evidence: `ArgHandler.cs`)
- Command handlers → Input parsing: parses UID (evidence: `ArgHandler.cs`)
- CLI runtime → Path group: creates groups (evidence: `Program.cs`)
- Path group → Easing functions: calculates easing (evidence: `Group.cs`)
- Path group → Sample points: creates samples (evidence: `Group.cs`)
- CLI runtime → Text export: exports groups (evidence: `README.md`)
- Text export → Local files: writes text files (evidence: `Program.cs`)
- CLI runtime → Point preview: previews group (evidence: `Program.cs`)
- Point preview → Local files: writes preview file (evidence: `Utils.cs`)
- Point preview → Windows Explorer: opens in editor (evidence: `Utils.cs`)
- CLI runtime → Logging: writes and flushes (evidence: `Program.cs`)
- Command handlers → Logging: sets log level (evidence: `ArgHandler.cs`)
- Logging → Log files: appends logs (evidence: `Log.cs`)
- CLI runtime → Easter eggs: triggers easter eggs (evidence: `Program.cs`)
- Easter eggs → Web browser: opens URLs (evidence: `Candies.cs`)
- Command handlers → Windows Explorer: opens directories (evidence: `ArgHandler.cs`)
