|
Porytiles
|
Position state for a color that has not yet been assigned a palette slot. More...
#include <color_position.hpp>
Position state for a color that has not yet been assigned a palette slot.
During palette construction, colors start as Undetermined. Sequential fill assigns them Absolute positions. Colors with Indirect links skip sequential fill and resolve later.
The Undetermined/Absolute/Indirect state machine is inspired by the Position_in_palette enum from borytiles by ishax-kos (https://github.com/ishax-kos/borytiles), specifically its palette.rs module. Borytiles introduced the insight that palette slot assignment can be decoupled from palette construction by linking colors to other colors rather than to absolute slot indices.
Definition at line 24 of file color_position.hpp.