/FlagSort

Sorting the colors on this ugly, ugly flag

Primary LanguagePythonMIT LicenseMIT

FlagSort

A script to sort the terrible "United States of Europe Flag" by color.

Motivation

This is a small project inspired by a post on the r/eyehurtingflags subreddit. Being a big fan of those animated sorting videos myself, I decided to try and make one myself.

The colors are sorted by HSV and QuickSort is used as the actual algorithm.

Libraries Used

  • Pillow for initial image processing
  • Pygame for animation rendering

Other Sources

  • Modified version of iterative QuickSort implementation from GeeksForGeeks
  • Color sorting options and explanation from Alan Zucconi