Spaces:
Sleeping
Sleeping
| # Atlas Module | |
| Texture atlas generation from color palettes | |
| ## Purpose | |
| - Create texture atlases from palettes | |
| - Generate UV mappings for colors | |
| ## Layout | |
| ``` | |
| atlas/ | |
| βββ context.md # This file | |
| βββ __init__.py # API: create_atlas() | |
| βββ builder.py # Atlas construction logic | |
| ``` | |
| ## Scope | |
| - In-scope: Atlas image creation, UV coordinate generation | |
| - Out-of-scope: Mesh processing, color quantization | |
| ## Entrypoints | |
| - `create_atlas(palette, size)` - Main atlas creation | |
| - `palette_to_atlas(palette, atlas_size)` - Build with UV mapping | |
| - `build_atlas(colors, width, height)` - Low-level builder | |
| ## Dependencies | |
| - Internal: None | |
| - External: Pillow, NumPy |