- Paste mozaic.py code to https://repl.it/languages/python3.
- Upload your image as input.jpg. png may be capable.
- Run it.
- Download result.xlsx
- Open result.xlsx with Microsoft excel or Libra Office.
You can see 0~8 numbers. They are the mozaic pixels. - Select all cells.
- Colorize the mozaic with Color Scale.
Libra Office: Format -> Conditional -> Color Scale.
Microsoft Excel: IDK see https://www.excel-easy.com/examples/color-scales.html