mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 02:07:10 +01:00
Keeping every distinct flat-area color made each lookup scan the whole list, so an image with many slowly varying flat colors cost pixels times colors. Each class's colors now sit in cells 2 * PURE wide on each channel, and a lookup checks the pixel's cell and the 15 neighbors on the sides it lies nearer. A test compares the lookup with a scan of every stored color.