mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 07:42:42 +00:00
Finding the blend pixels and settling them onto a side took about 85% of color quantize on a 16 MP raster, all of it on one thread. The k-means palette step works on at most 32,768 histogram bins and took under 1%. - own_colours_among and settled work through bands of about 65,536 pixels with layers::parallel_map (one thread on wasm32) and join the results in row order. settled reads every pixel's neighbors from the labels as they were before any change, as before, without copying them. - settled_wide settles groups of its 7-column strips apart; each strip already started from empty buffers. - A picture with no pixels returns before any band or strip is made. The output does not change.