I have around 1000 lines. I will make them as clusters upon receiving input from user how many clusters he wants. I want to give new color to each cluster. I do not want to specify color manually for each of these 1000 lines.
sample code:
var material = new THREE.LineBasicMaterial({ color: new THREE.Color("rgb(0, 102, 153)" // color: chroma.limits(data, 'e', 1)) });
I want to automatically choose new different rgb colors while I create material in a for loop for each lines in each cluster.
I have a solution using d3.js scalecategory. But this is confined to only 10 or 20 colors,
I tried with chroma.js too as above commented line. But of no use,
Edit1: Changed question to cluster of lines rather than each different lines.