How the cut is made
-
01
Reduce the palette
The picture is scaled to a working size, then sorted into a small palette with a median cut and a few k-means passes. Every pixel ends up with one palette index.
-
02
Follow the edges
Regions of one colour are joined into components. Kirie walks the cracks between pixels, smooths the staircase, and drops points that sit on a straight run.
-
03
Cut and place
Each contour becomes a cubic path. Shapes are ordered by area, the big ones behind, so a small highlight lands on top of the face it belongs to.
-
04
Write the scene
The XML uses the layout Alight Motion 5 writes: one shape element per contour, the outline in a path tag, and the anchor at the centre of that contour.