MeshPalettizer / src /atlas /context.md
dylanebert's picture
initial commit
346b70f

A newer version of the Gradio SDK is available: 6.2.0

Upgrade

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