# stealthycoder/palette architecture

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

- Interactive diagram: https://gitdiagram.com/stealthycoder/palette
- Repository: https://github.com/stealthycoder/palette

## Overview

##### Main System Components

A. Core Palette Definition Layer

B. Platform-Specific Implementations
- Implementations into categories:
1. Retro Systems
- Windows 3.11 (Both CRT and Modern variants)
- MS-DOS
- YSMenu (DS)
2. Modern Systems
- TTY/Terminal
- PowerShell
- Android UI
3. Web/Browser
- Stylus implementations

**[Core Palette Definition]**

- ┐

- v                             v
**[Platform-Specific    [Configuration Generator]**
- Implementation]              │
- v
- >[Output Formats]
- INI files
- System-specific formats

##### Key Elements to Highlight

B. Platform Compatibility Layer
- CRT displays
- Modern LCD/LED displays
- Mobile screens

##### Important Relationships

- Rectangles: Core components
- Rounded rectangles: Platform implementations
- Diamonds: Decision points for display type

##### Implementation Details

- Platform-specific constraints

Remember to include a version indicator as this project appears to be in development, with some platforms marked as future additions (Android, PowerShell) in the README.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Core["Core Palette Definition"]
        BasePalette["Base Color Definitions"]
        ColorRel["Color Relationships"]
        Variants["Color Variants"]
        
        BasePalette --> ColorRel
        ColorRel --> Variants
    end

    subgraph Processing["Color Processing Layer"]
        Transform["Color Transformers"]
        Adapters["Format Adapters"]
        
        Transform --> Adapters
    end

    subgraph Platforms["Platform-Specific Implementations"]
        subgraph Retro["Retro Systems"]
            Win311["Windows 3.11"]
            DOS["MS-DOS"]
            YSMenu["YSMenu (DS)"]
        end

        subgraph Modern["Modern Systems"]
            TTY["TTY/Terminal"]
            PowerShell["PowerShell"]
            Android["Android UI"]
        end

        subgraph Web["Web/Browser"]
            Stylus["Stylus Implementation"]
        end
    end

    subgraph Display["Display Technology Layer"]
        CRT["CRT Display Adapter"]
        LCD["Modern Display Adapter"]
        Mobile["Mobile Display Adapter"]
    end

    subgraph Output["Output Formats"]
        INI["INI Files"]
        Schemes["Color Schemes"]
        CRTConfig["CRT Configuration"]
        ModernConfig["Modern Configuration"]
    end

    Core --> Processing
    Processing --> Platforms
    Win311 --> Display
    CRT --> CRTConfig
    LCD --> ModernConfig
    Processing --> Output

    classDef core fill:#6B4E71,color:#fff
    classDef processing fill:#FF8C42,color:#fff
    classDef platform fill:#FFD93D,color:#333
    classDef output fill:#95A5A6,color:#fff
    classDef display fill:#2ECC71,color:#fff

    class BasePalette,ColorRel,Variants core
    class Transform,Adapters processing
    class Win311,DOS,YSMenu,TTY,PowerShell,Android,Stylus platform
    class INI,Schemes,CRTConfig,ModernConfig output
    class CRT,LCD,Mobile display

    click Win311 "https://github.com/StealthyCoder/palette/tree/main/win/3.11/"
    click CRT "https://github.com/StealthyCoder/palette/tree/main/win/3.11/crt/"
    click LCD "https://github.com/StealthyCoder/palette/tree/main/win/3.11/modern/"
    click CRTConfig "https://github.com/StealthyCoder/palette/blob/main/win/3.11/crt/CONTROL.INI"
    click ModernConfig "https://github.com/StealthyCoder/palette/blob/main/win/3.11/modern/CONTROL.INI"
```
