An open API service indexing awesome lists of open source software.

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++

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 \
Keppler screen \
or you put your images in a folder named 'img' in the same folder as the exe. \
Keppler screen

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