File size: 682 Bytes
346b70f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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