# anchorxv/colorfloatx architecture

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

- Interactive diagram: https://gitdiagram.com/anchorxv/colorfloatx
- Repository: https://github.com/anchorxv/colorfloatx

## Overview

ColorFloatX is a desktop color-manipulation utility. The user launches the Qt app, edits or picks a color in the window, and the window synchronizes color representations and previews while invoking utility transformations. README capabilities not visible in the partial window excerpt are retained as documented functions, but their internal wiring is not asserted. Evidence is limited to the supplied source excerpts and README.

Main entry points: [`app/main_window.py`](https://github.com/anchorxv/colorfloatx/blob/main/app/main_window.py) (Color workspace), [`main.py`](https://github.com/anchorxv/colorfloatx/blob/main/main.py) (Launch app), [`app/widgets.py`](https://github.com/anchorxv/colorfloatx/blob/main/app/widgets.py) (HSV color wheel), [`app/style.qss`](https://github.com/anchorxv/colorfloatx/blob/main/app/style.qss) (Application styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_launch["Launch app<br/>[main.py]"]
  node_stylesheet["Application styling<br/>[style.qss]"]
end

subgraph group_ui["Color interface"]
  node_window["Color workspace<br/>[main_window.py]"]
  node_representations["RGBA / HSV / Hex sync<br/>[main_window.py]"]
  node_controls["Sliders and numeric inputs<br/>[main_window.py]"]
  node_history["Color history<br/>[main_window.py]"]
  node_gradient["Gradient selection<br/>[main_window.py]"]
  node_clipboard["Copy formats<br/>[main_window.py]"]
end

subgraph group_logic["Color operations"]
  node_utilities["Color conversions<br/>[color_utils.py]"]
  node_transforms["Color transforms<br/>[color_utils.py]"]
  node_harmonies["Harmony generation<br/>[color_utils.py]"]
  node_presets["Color presets<br/>[color_utils.py]"]
end

subgraph group_visual["Color widgets"]
  node_wheel["HSV color wheel<br/>[widgets.py]"]
  node_previews["Color previews<br/>[widgets.py]"]
end

node_user(("Developer / artist"))
node_clipboard_service["System clipboard"]

node_user -->|"starts"| node_launch
node_launch -->|"creates"| node_window
node_launch -->|"loads"| node_stylesheet
node_user -->|"manipulates"| node_window
node_window -->|"synchronizes"| node_representations
node_controls -.->|"edits"| node_representations
node_wheel -->|"emits color"| node_window
node_window -.->|"configures"| node_wheel
node_window -->|"updates"| node_previews
node_window -->|"converts"| node_utilities
node_window -->|"invokes"| node_transforms
node_window -->|"requests colors"| node_harmonies
node_window -.->|"offers presets"| node_presets
node_window -->|"tracks colors"| node_history
node_window -->|"selects endpoints"| node_gradient
node_window -->|"copies formats"| node_clipboard
node_clipboard -.->|"writes"| node_clipboard_service

click node_launch "https://github.com/anchorxv/colorfloatx/blob/main/main.py"
click node_window "https://github.com/anchorxv/colorfloatx/blob/main/app/main_window.py"
click node_representations "https://github.com/anchorxv/colorfloatx/blob/main/app/main_window.py"
click node_controls "https://github.com/anchorxv/colorfloatx/blob/main/app/main_window.py"
click node_wheel "https://github.com/anchorxv/colorfloatx/blob/main/app/widgets.py"
click node_previews "https://github.com/anchorxv/colorfloatx/blob/main/app/widgets.py"
click node_utilities "https://github.com/anchorxv/colorfloatx/blob/main/app/color_utils.py"
click node_transforms "https://github.com/anchorxv/colorfloatx/blob/main/app/color_utils.py"
click node_harmonies "https://github.com/anchorxv/colorfloatx/blob/main/app/color_utils.py"
click node_presets "https://github.com/anchorxv/colorfloatx/blob/main/app/color_utils.py"
click node_history "https://github.com/anchorxv/colorfloatx/blob/main/app/main_window.py"
click node_gradient "https://github.com/anchorxv/colorfloatx/blob/main/app/main_window.py"
click node_clipboard "https://github.com/anchorxv/colorfloatx/blob/main/app/main_window.py"
click node_stylesheet "https://github.com/anchorxv/colorfloatx/blob/main/app/style.qss"

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_launch,node_stylesheet toneBlue
class node_window,node_representations,node_controls,node_history,node_gradient,node_clipboard toneAmber
class node_utilities,node_transforms,node_harmonies,node_presets toneMint
class node_wheel,node_previews toneRose
class node_user,node_clipboard_service toneIndigo
```

## Components

### Application entry

- [Launch app](https://github.com/anchorxv/colorfloatx/blob/main/main.py): `main.py`
- [Application styling](https://github.com/anchorxv/colorfloatx/blob/main/app/style.qss): `app/style.qss`

### Color interface

- [Color workspace](https://github.com/anchorxv/colorfloatx/blob/main/app/main_window.py): `app/main_window.py`
- [RGBA / HSV / Hex sync](https://github.com/anchorxv/colorfloatx/blob/main/app/main_window.py): `app/main_window.py`
- [Sliders and numeric inputs](https://github.com/anchorxv/colorfloatx/blob/main/app/main_window.py): `app/main_window.py`
- [Color history](https://github.com/anchorxv/colorfloatx/blob/main/app/main_window.py): `app/main_window.py`
- [Gradient selection](https://github.com/anchorxv/colorfloatx/blob/main/app/main_window.py): `app/main_window.py`
- [Copy formats](https://github.com/anchorxv/colorfloatx/blob/main/app/main_window.py): `app/main_window.py`

### Color operations

- [Color conversions](https://github.com/anchorxv/colorfloatx/blob/main/app/color_utils.py): `app/color_utils.py`
- [Color transforms](https://github.com/anchorxv/colorfloatx/blob/main/app/color_utils.py): `app/color_utils.py`
- [Harmony generation](https://github.com/anchorxv/colorfloatx/blob/main/app/color_utils.py): `app/color_utils.py`
- [Color presets](https://github.com/anchorxv/colorfloatx/blob/main/app/color_utils.py): `app/color_utils.py`

### Color widgets

- [HSV color wheel](https://github.com/anchorxv/colorfloatx/blob/main/app/widgets.py): `app/widgets.py`
- [Color previews](https://github.com/anchorxv/colorfloatx/blob/main/app/widgets.py): `app/widgets.py`

### Other components

- **Developer / artist**
- **System clipboard**

## Connections

- Developer / artist → Launch app: starts (evidence: `README.md`)
- Launch app → Color workspace: creates (evidence: `main.py`)
- Launch app → Application styling: loads (evidence: `main.py`)
- Developer / artist → Color workspace: manipulates (evidence: `README.md`)
- Color workspace → RGBA / HSV / Hex sync: synchronizes (evidence: `app/main_window.py`)
- Sliders and numeric inputs → RGBA / HSV / Hex sync: edits (evidence: `app/main_window.py`)
- HSV color wheel → Color workspace: emits color (evidence: `app/main_window.py`)
- Color workspace → HSV color wheel: configures (evidence: `app/main_window.py`)
- Color workspace → Color previews: updates (evidence: `app/main_window.py`)
- Color workspace → Color conversions: converts (evidence: `app/main_window.py`)
- Color workspace → Color transforms: invokes (evidence: `app/main_window.py`)
- Color workspace → Harmony generation: requests colors (evidence: `app/main_window.py`)
- Color workspace → Color presets: offers presets (evidence: `app/main_window.py`)
- Color workspace → Color history: tracks colors (evidence: `app/main_window.py`)
- Color workspace → Gradient selection: selects endpoints (evidence: `app/main_window.py`)
- Color workspace → Copy formats: copies formats (evidence: `app/main_window.py`)
- Copy formats → System clipboard: writes
