Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ovidios/spindafy
https://github.com/ovidios/spindafy
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ovidios/spindafy
- Owner: Ovidios
- Created: 2024-04-01T18:40:48.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-28T16:52:01.000Z (9 months ago)
- Last Synced: 2024-04-28T20:44:41.199Z (9 months ago)
- Language: Python
- Size: 120 KB
- Stars: 21
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Spindafy
This is a simple script to find a personality value (PID) that most closely matches a target image when applied as a pattern to the Pokémon Spinda!It consists of the following files:
- ``spindafy.py`` defines the ``SpindaConfig`` class, representing a Spinda point configuration. It also contains a method to render the pattern to a PIL Image, compare it to a target image, an to check whether a pixel is within a spot's area.
- ``spinda_optimizer.py`` defines a *very* simple genetic algorithm to try and find a good PID for a given input image.
- ``spinda_anim.py`` just runs the genetic algorithm on a number of files in a given directory and writes the results to a different directory (both given as command line arguments.) See [this YouTube video](https://www.youtube.com/watch?v=ZzsBIfA6iog) for an example.
- ``large_spinda.py`` implements a super naive and *very* slow spinda mosaic generator. Example:
![a mosaic of spinda forming a yin and yang symbol](res/test_large_result.png)
- ``large_spinda_anim.py`` is the mosaic equivalent of ``spinda_anim.py``.