function genHexColor() {
  colors = new Array(16);
  colors[0] = "0";
  colors[1] = "1";
  colors[2] = "2";
  colors[3] = "3";
  colors[4] = "4";
  colors[5] = "5";
  colors[6] = "6";
  colors[7] = "7";
  colors[8] = "8";
  colors[9] = "9";
  colors[10] = "a";
  colors[11] = "b";
  colors[12] = "c";
  colors[13] = "d";
  colors[14] = "e";
  colors[15] = "f";

  digit = new Array(5);
  color = "";
  for (i = 0; i < 6; i++) {
    digit[i] = colors[Math.round(Math.random() * 15)];
    color = color + digit[i];
  }

  return color;
}
/**
 * Generate a random color in Hex format
 */
Generate a random color in Hex format
Generate a random color in Hex format
function genHexColor() {
  colors = new Array(16);
  colors[0] = "0";
  colors[1] = "1";
  colors[2] = "2";
  colors[3] = "3";
  colors[4] = "4";
  colors[5] = "5";
  colors[6] = "6";
  colors[7] = "7";
  colors[8] = "8";
  colors[9] = "9";
  colors[10] = "a";
  colors[11] = "b";
  colors[12] = "c";
  colors[13] = "d";
  colors[14] = "e";
  colors[15] = "f";
  digit = new Array(5);
  color = "";
  for (i = 0; i < 6; i++) {
    digit[i] = colors[Math.round(Math.random() * 15)];
    color = color + digit[i];
  }
  return color;
}
function genHexColor ( ) { colors = new Array ( 16 ) ; colors [ 0 ] = "0" ; colors [ 1 ] = "1" ; colors [ 2 ] = "2" ; colors [ 3 ] = "3" ; colors [ 4 ] = "4" ; colors [ 5 ] = "5" ; colors [ 6 ] = "6" ; colors [ 7 ] = "7" ; colors [ 8 ] = "8" ; colors [ 9 ] = "9" ; colors [ 10 ] = "a" ; colors [ 11 ] = "b" ; colors [ 12 ] = "c" ; colors [ 13 ] = "d" ; colors [ 14 ] = "e" ; colors [ 15 ] = "f" ; digit = new Array ( 5 ) ; color = "" ; for ( i = 0 ; i < 6 ; i ++ ) { digit [ i ] = colors [ Math . round ( Math . random ( ) * 15 ) ] ; color = color + digit [ i ] ; } return color ; }
Generate a random color in Hex format
Generate a random color in Hex format