https://github.com/eliott-srl/rainbow_sort
A colour sorter in C++
https://github.com/eliott-srl/rainbow_sort
colour colours coloursort cpp hsv hue rgb sorter
Last synced: about 1 year ago
JSON representation
A colour sorter in C++
- Host: GitHub
- URL: https://github.com/eliott-srl/rainbow_sort
- Owner: Eliott-Srl
- License: mit
- Created: 2023-04-28T20:02:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T18:34:29.000Z (about 2 years ago)
- Last Synced: 2025-05-16T00:42:23.302Z (about 1 year ago)
- Topics: colour, colours, coloursort, cpp, hsv, hue, rgb, sorter
- Language: C++
- Homepage:
- Size: 785 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Rainbow Sort
**Rainbow Sort** is a program which sort images into the rainbow order.
## Origin
The idea behind this program is that I wanted to sort by color the books in my shelve. The challenge was to do this only in C++.
## Sources
For the sort method I've read those articles:
* [The incredibly challenging task of sorting colours](https://www.alanzucconi.com/2015/09/30/colour-sorting/)
* [Change RGB color model to HSV color model](https://www.geeksforgeeks.org/program-change-rgb-color-model-hsv-color-model/)
For the image treatment library:
* [Tutorial for the library (stb_image)](https://solarianprogrammer.com/2019/06/10/c-programming-reading-writing-images-stb_image-libraries/)
## Usage
You run the program or you specify the absolute path \
\
or you put your images in a folder named 'img' in the same folder as the exe. \

## Example
Before the program: \
\
And after: \
