Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 916 Bytes

File metadata and controls

21 lines (15 loc) · 916 Bytes

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