
Flaggle
Test your knowledge of world flags
Description
Flaggle is a web-based flag game where you need to guess the target flag. Each guess shows you the similarity between your guess and the target flag.
I built Flaggle with SvelteKit and used the Canvas API to compare flag images pixel by pixel based on color similarity. I also wrote an asset pipeline that downloads SVG flags and converts them into consistently sized PNGs before gameplay. Flag images are cached in IndexedDB so later sessions can reuse downloaded assets.



