{"repo":"Sklyvan/RainbowSorting","free":true,"listed":false,"github":"https://github.com/Sklyvan/RainbowSorting","clone":"git clone https://github.com/Sklyvan/RainbowSorting.git","description":"Visualize classic sorting algorithms as a rainbow of RGB colours, built with Python and PyGame.","language":"Python","stars":44,"topics":["python","sorting-algorithms","algorithm","python3","education","pygame","sorting-visualizer","visualization"],"license":null,"category":"game-templates","readme_excerpt":"Rainbow Sorting 🍭 A Python application that visualizes how sorting algorithms work, painting every array element with a smooth rainbow of RGB colours. Each value in the array is drawn as a vertical bar whose height encodes the value and whose colour is taken from a continuous RGB gradient. As an algorithm runs, you can watch the bars swap and settle into place in real time, with a live counter of array accesses and (optionally) sound generated from each move. Features - Real-time visualization of several classic sorting algorithms. - Full-colour RGB gradient mapping for every array element. - Live array-access counter and on-screen algorithm/size information. - Optional sound generation, where each moved element plays a tone based on its value. - Configurable array size and algorithm, all from a single file. Implemented algorithms The following algorithms are implemented in Sorting Algorithms.py : # Algorithm --- ----------- 1 Insertion Sort 2 Cocktail Shaker Sort 3 Bubble Sort 4 Tim Sort 5 Cycle Sort Two extra visualization modes are also included: # Mode --- ------ 6 Rotation 7 Elements Increaser A few examples Insertion Sort Bubble Sort :---: :---: Cocktail Shaker Sort Tim Sort :---: :---: Requirements - Windows — the app relies on ctypes.windll and winsound , so it is designed to run on Windows. - Python 3.7+ - PyGame, NumPy and PyAudio Installation Use the package manager pip to install the dependencies: Usage Run the application with Python 3.7 or newer: To change the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Sklyvan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Sklyvan/RainbowSorting/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}