代码


if(x==0&&y==0){kr=kg=kb=0;}
var l;
kr+=Math.random();
l=parseInt(kr)%512;
r=l>255?511-l:l;
kg+=Math.random();
l=parseInt(kg)%512;
g=l>255?511-l:l;
kb+=Math.random();
l=parseInt(kb)%512;
b=l>255?511-l:l;