説明なし

Kirk Trombley ebed92f2f0 Tweak prettier settings 2 年 前
.gitignore 7ca6f6cf28 Ignore big-pngs dir 3 年 前
.prettierrc ebed92f2f0 Tweak prettier settings 2 年 前
README.md ce05cae0e5 Update docs 3 年 前
anim_ingest.py 00921a335d Improve filters on anim_ingest and make get_all_pokemon more reusable 2 年 前
database-anim.js 67d6028464 Add k=2 support 3 年 前
database-cam02.csv aae3fad879 Update databases 3 年 前
database-gen9.json b63d18527b Ingest gen 9 + PLA data (pngs only) 2 年 前
database-v2.js d97ff6f2b4 Generate database v2 3 年 前
database-v3-afd.js 2a903c1667 AFD mode 3 年 前
database-v3.js bde2d098f3 Remove dead code and bad data 2 年 前
database.csv 8231b34d4c Generate dbs from big pngs 3 年 前
database.js c554364c28 Improve kmeans logic, write proportions to js db 3 年 前
explore.py 3af774f436 Misc cleanup 3 年 前
framework.js 170a5fa109 list management with reactivity stopped on unmount 2 年 前
gen9_ingest.py b63d18527b Ingest gen 9 + PLA data (pngs only) 2 年 前
index.html ccf69ab3b5 Simplify some layout 2 年 前
ingest.py d97ff6f2b4 Generate database v2 3 年 前
main.js 967b54eddf Initial setup for new form stuff 2 年 前
math.js 03357bfc47 Misc improvements 2 年 前
math.md ce05cae0e5 Update docs 3 年 前
nearest.py 9d01b436fc Update nearest script for CAM02, fix n=1 bug 3 年 前
plan.md d97ff6f2b4 Generate database v2 3 年 前
pngs.md 0d047c1960 Split up README, add more math docs 3 年 前
requirements.txt 47f5ef4a69 Add reqs for anim_ingest 3 年 前
script.js 170a5fa109 list management with reactivity stopped on unmount 2 年 前
styles.css 5d5cd0d94d Simplify some styling 2 年 前

README.md

Pokemon Color Search

Utility for quickly finding pokemon by the sprite's "distance" from a given color.

See also explanations of the underlying math and which images are used.

Included Files

  • ingest.py generates database.csv which is needed for nearest.py, database-cam02.csv which is an alternative database for nearest.py using the CAM02-UCS color space, and database.js which is needed for nearest.html. Requires numpy, Pillow (PIL), and colorspacious.
  • nearest.py provides multiple options for finding pokemon "near" a color. No external dependencies, but a database must be provided. If CAM02-UCS is being used, this requires colorspacious and numpy.
  • nearest.html and nearest.js allow you to use a front-end in your browser, by opening nearest.html directly. The implementation is somewhat lazy to avoid the use of an actual build system, and statically imports the dependencies Fuse.js, d3-color, and d3-cam02. Requires database.js to be present, meaning ingest.py must be run first, unless you are using the included database.
  • explore.py traverses a subset of the 24-bit RGB color space and finds the pokemon that most closely match each color, and produces best.csv and counts.csv as results.
  • database.csv, database-cam02.csv, and database.js are included as well, built from the set of pngs detailed in pngs.md.