I am wanting to produce graphs of my server traffic using rrdtool, but it expects hex color codes for each line on the graph.
Since I am wanting to iterate over a varying bunch of domain data files, I would like to generate these color codes programatically. I would also like them to remain consistent for a given domain data file - so I think a hash of the domain name would be a good method to use. Problem is, I don't know where to begin.
Is there a simple algorithm that I can use in bash to hash strings (domain names) into hex color codes?