Given a number n, what is the best way to find n colors which match to each other in an harmonic way? My current approach is as follows:
So, I divide the hue circle into n segments and select for each of the segments the color. When grouping the colors in the list I pair two colors which are located opposite in the hue circle with each other.
Is there any algorithm offering a better (i.e., more harmonic) choice?
I think you're looking for "color palette generation algorithm". The first result googling that is a good intro: http://devmag.org.za/2012/07/29/how-to-choose-colours-procedurally-algorithms/, but there are zillions of ways to do it, depending on what you're looking for.