HTML5 Plyr

The Code Behind My 30,000 Pokémon Card Mosaic

Newbie Indie Game Dev · Mar 10, 2025 · 08:15

😺 Join the Newbie Nexus on Discord: https://discord.gg/CkWXnH9utV
⭐ Get the source code on Patreon: https://patreon.com/NewbieIndieGameDev
👾 Play some of my games: https://newbie-indie-game-dev.itch.io/

I developed an algorithm that takes any image and reconstructs it using Pokémon cards, treating them like pixels to match the colors of the original. In this video, I break down how it works and share some fun insights I found while exploring the massive dataset of Pokémon cards. This was a fun artistic detour from my usual game development content.

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

0:00 Introduction
0:10 Pokémon TCG Database
0:56 Common Words in Pokémon Attacks
1:23 Dividing the Image
1:58 Finding the Dominant Color
2:45 Matching Colors with Euclidean Distance
3:20 Lab Color Space & CIEDE2000
4:18 Card Type Distribution
5:07 Selecting the Best Card
6:34 Placing the Card
6:54 Algorithm Settings
7:34 Most & Least Represented Pokémon
7:56 Final Thoughts

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

🎥 Video by:

Nati Mendez
https://www.behance.net/natimendez
hello.natimendez@gmail.com

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

🤖 Pokémon TCG API:

https://pokemontcg.io/
https://github.com/PokemonTCG/pokemon-tcg-data

📚 Related reads:

TCGPLAYER - There Are Over 200,000 Distinct Pokémon Cards
https://infinite.tcgplayer.com/article/There-Are-Over-200-000-Distinct-Pok%C3%A9mon-Cards/247ad4fc-1b79-4455-aa56-57b98c65bb68/

#Devlog #Pokemon #PokemonTCG #Programming #DigitalArt
Comments (203 saved) click to expand
Loading comments…
mirrors
video (0807): https://0807.st/9ZE5YdM.mp4
video (qu.ax): https://qu.ax/2fvS1
video (Anonhost): https://r2.anonhost.cc/xtceCQ3bRz.mp4
video (pasted.sh): https://pasted.sh/D08Q.mp4