|
hace 2 años | |
---|---|---|
.gitignore | hace 3 años | |
.prettierrc | hace 2 años | |
README.md | hace 3 años | |
anim_ingest.py | hace 2 años | |
database-anim.js | hace 3 años | |
database-cam02.csv | hace 3 años | |
database-gen9.json | hace 2 años | |
database-v2.js | hace 3 años | |
database-v3-afd.js | hace 3 años | |
database-v3.js | hace 2 años | |
database.csv | hace 3 años | |
database.js | hace 3 años | |
explore.py | hace 3 años | |
framework.js | hace 2 años | |
gen9_ingest.py | hace 2 años | |
index.html | hace 2 años | |
ingest.py | hace 3 años | |
main.js | hace 2 años | |
math.js | hace 2 años | |
math.md | hace 3 años | |
nearest.py | hace 3 años | |
plan.md | hace 3 años | |
pngs.md | hace 3 años | |
requirements.txt | hace 3 años | |
script.js | hace 2 años | |
styles.css | hace 2 años |
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.