Step 1 · Sample
Shrink it, then read every pixel
The image is scaled down until its longest side is at most 120 px. Pixels that are more than half transparent are skipped.
Each remaining pixel is three numbers from 0 to 255: red, green and blue. Use those as coordinates and every pixel becomes a point inside a cube.
- Longest side
- 120 px
- Points to sort
- —