Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.2.0
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 creationpalette_to_atlas(palette, atlas_size)- Build with UV mappingbuild_atlas(colors, width, height)- Low-level builder
Dependencies
- Internal: None
- External: Pillow, NumPy