Giter Site home page Giter Site logo

betahuhn / countrypicker Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 2.81 MB

🚩Pixel art country selector

Home Page: https://flags.mxis.ch

License: MIT License

JavaScript 83.25% HTML 11.08% CSS 4.47% Dockerfile 0.05% EJS 1.15%
nodejs pixel-art country-picker country-flags

countrypicker's Introduction

Node.js Pixel art country picker

gif

Live Demo

The live demo of the country picker can be found here: https://flags.mxis.ch

Introduction

This is an extension of @enwash's original pixel-country-picker. But instead of comparing the drawn flag directly to previously saved flags, this version goes through all saved flags and counts the matching pixels. The country whose flag has the most matching pixels will be displayed as the result. Using this technique you don't have to draw an exact match of the Flag and it detects the right country pretty early.

This repo also includes the code for the colorPicker node.js app in the src folder. The updated version of @enwash's original pixel-country-picker can be found in the colorPicker folder

Contribution

If you want to add a new flag you can visit https://flags.mxis.ch/add and simply draw it. It will be publicly available on the home page.

About

Original idea and code for the country picker by @enwash, the app for adding new flags and the updated country picker where developed by me (Maximilian Schiller)

Note: Please ignore the code for the website, it was written a while back when I just started using JS and was done quite quickly. I promise that's not how I would do things today :D

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.