没看那网站,js无法从图形上取颜色,所以要不就是表格或层组成的色块。
要不就是知道坐标对应的颜色值。
填充就用css的style.backgroundColor="颜色值"
或是
bgcolor=