With GoodbyeHtml you may easily create a full HTML page (or part(s) of it), using only one canvas.
A great advantage of this approach is that the final result is 100% under your control on any browser and device.
This system has good performance and consumes little memory.
The library is very careful about avoiding developer mistakes and about clearly messaging the mistakes.
All you need is the file goodbye.js (everything else here exists to create this file).
WARNINGS:
- run packager.js with Deno to package the source code
- running packager.js CLEARS your terminal (you may comment the line that clears your terminal)
- running packager.js WRITES in your disk
Here you can experiment a demo: https://storage.googleapis.com/jblate/medium/mosaic-demo.html
Here is the demo in GitHub: https://github.com/JoanaBLate/mosaic-generator
More info at https://javascript.plainenglish.io/goodbye-html-hello-canvas-part-1-92f750961666
Copyright (c) 2022 Feudal Code Limitada