|
%!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.gitignore | %!s(int64=3) %!d(string=hai) anos | |
.prettierrc | %!s(int64=2) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
anim_ingest.py | %!s(int64=2) %!d(string=hai) anos | |
database-anim.js | %!s(int64=3) %!d(string=hai) anos | |
database-cam02.csv | %!s(int64=3) %!d(string=hai) anos | |
database-gen9.json | %!s(int64=2) %!d(string=hai) anos | |
database-v2.js | %!s(int64=3) %!d(string=hai) anos | |
database-v3-afd.js | %!s(int64=3) %!d(string=hai) anos | |
database-v3.js | %!s(int64=2) %!d(string=hai) anos | |
database.csv | %!s(int64=3) %!d(string=hai) anos | |
database.js | %!s(int64=3) %!d(string=hai) anos | |
explore.py | %!s(int64=3) %!d(string=hai) anos | |
framework.js | %!s(int64=2) %!d(string=hai) anos | |
gen9_ingest.py | %!s(int64=2) %!d(string=hai) anos | |
index.html | %!s(int64=2) %!d(string=hai) anos | |
ingest.py | %!s(int64=3) %!d(string=hai) anos | |
main.js | %!s(int64=2) %!d(string=hai) anos | |
math.js | %!s(int64=2) %!d(string=hai) anos | |
math.md | %!s(int64=3) %!d(string=hai) anos | |
nearest.py | %!s(int64=3) %!d(string=hai) anos | |
plan.md | %!s(int64=3) %!d(string=hai) anos | |
pngs.md | %!s(int64=3) %!d(string=hai) anos | |
requirements.txt | %!s(int64=3) %!d(string=hai) anos | |
script.js | %!s(int64=2) %!d(string=hai) anos | |
styles.css | %!s(int64=2) %!d(string=hai) anos |
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.
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.