3
I want to put inside an array, hexadecimal colors debts from a variable, so I have all different colors within the array.
I have the following example, but using colors does not work:
var color=[];
var n_elements =10 ;
var inc=0;
//65535 número maximo
var step=parseInt(65535/n_elements);//#FFFFFF
for(i=0;i<=65535;i+=step){
var hexString = i.toString(16);
color[inc]="#"+hexString;
console.log(color[inc]);
inc++;
}