Ase Quantize To Palette
ase_quantize_to_paletteQuantize opaque pixels in a sprite to the nearest palette color, making existing art conform to an applied palette. Works across all layers and frames; returns the number of pixels changed.
Instructions
Snap every opaque pixel to the nearest color in the sprite's own palette (RGB distance, cached per color). layer None = all layers, frame=0 = every frame. Run after ase_apply_palette_preset / ase_set_palette to make existing art conform. Returns the number of pixels changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | ||
| layer | No | ||
| sprite_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||