Code Monkey home page Code Monkey logo

spindafy's Introduction

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 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
  • large_spinda_anim.py is the mosaic equivalent of spinda_anim.py.

spindafy's People

Contributors

ovidios avatar t-wolfeadam avatar

Stargazers

cypress avatar David Alexander Pfeiffer avatar David Sharp avatar Chris Struck avatar Emma avatar Josh avatar Matoi647 avatar Henrique Machado Gonçalves avatar Federico Agnello avatar  avatar Sarah avatar Jalea avatar Joshua Baldwin avatar btarg avatar hammy275 avatar Liviusz Szalma avatar  avatar MaxPower avatar Haydn Rad Cooke avatar ASHE :3 avatar Jacob Mederos avatar  avatar Gabriel Toschi avatar THOMASS47 avatar  avatar Noah Lindsey avatar Corentin Flr avatar  avatar Julio Cesar avatar  avatar Petie Deveer avatar  avatar Eryk Miszczuk avatar  avatar Sergio avatar  avatar Roman K. avatar  avatar Trym Tveito avatar  avatar Celeste Strode avatar hexa avatar Nuclear Pasta avatar Coziest avatar Chloe Wieser avatar Cora avatar sophie avatar Charlie Francis Cassidy avatar Jenetrix avatar Ned Loynd avatar Daxtron2 avatar  avatar Carter Currin avatar Daedalus avatar Ronan avatar Lexi avatar

Watchers

 avatar Carter Currin avatar THOMASS47 avatar  avatar  avatar

spindafy's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.