_="bO=docum^t.creJeElem^t('input''25px';F=6;ba.cl$eNode(KzIndex--;E=S=30KW=60KlStyle=74];setTransform(10,10 .5,.5 for(j=Kj<75];j9S,S rotJe(6.283/75~-S,-S beginPJh@To(7_,7! lineTo(72],73~}`downstarty<25){x==i)E=;}H}q=[[x,y]];D= ;zQ=[]q.l^gth;i9B==_++!2]3]){-2,+2-2,+2Q.push([-Z+Z-!,[+!)}}q=Q;i)setTimeout(z,0 `O.$chanL=HN=F;c=AclearRectV S,S,S'#aaa',N~ii,20,i>500?E:,! `c=a`Hup^dy<25Me.butt$Mz(B=_!2]3~`@@D){q=[];X,Y,x,y }q[i][R=G=B=-50W;i9i%4M(R=(Ri%20M(G=(Gi%100M(B=(BxXX yYY I[(%W+!U) positi$='absolute';top=I[(x%W+yU+','+I=LtImaLDJaV).dJa;D=K );translJe(,!=e=>{=a.$touchMe.touches[_.paL_a.$mouse+50)%250 .LtC$text('2d' 'rgb('+RGB+')'A.style.stroke.app^dChild(A=,0,,E,N~=e&&(e.paL;for(i=Ki<c.if(l([ X=x;Y=y;}!1]$on7e[9++){@moveFO.valueJatK0;LgeM||U*W)*4+V(0W,WZ1],[^en_0]`};~] ( ";for(Y in $="~`_^ZVUMLKJF@97$! ")with(_.split($[Y]))_=join(pop());eval(_)
b.appendChild(A=O=document.createElement('input'));
A.style.position='absolute';
A.style.top='25px';
O.value=6;
b.appendChild(A=a.cloneNode());
A.style.position='absolute';
A.style.top=0;
A.style.zIndex--;
E=S=300;W=600;
l=e=>{
c.strokeStyle=e[4];
c.setTransform(1,0,0,1,0,0);
c.translate(.5,.5);
for(j=0;j<e[5];j++){
c.translate(S,S);
c.rotate(6.283/e[5]);
c.translate(-S,-S);
c.beginPath();
c.moveTo(e[0],e[1]);
c.lineTo(e[2],e[3]);
c.stroke();c.stroke();
}
};
a.onmousedown=a.ontouchstart=e=>{
x=e&&(e.pageX||e.touches[0].pageX);
y=e&&(e.pageY||e.touches[0].pageY);
if(y<25)
{
R=G=B=-50;
for(i=0;i<W;i++){
i%4||(R=(R+50)%250);
i%20||(G=(G+50)%250);
i%100||(B=(B+50)%250);
if(x==i)E='rgb('+R+','+G+','+B+')';
}
H();
}
q=[[x,y]];
D=X=x;
Y=y;
};
z=e=>{
Q=[];
for(i=0;i<q.length;i++)
{
if(B==I[(q[i][0]%W+q[i][1]*W)*4+0]+++','+I[(q[i][0]%W+q[i][1]*W)*4+1]+','+I[(q[i][0]%W+q[i][1]*W)*4+2]+','+I[(q[i][0]%W+q[i][1]*W)*4+3])
{
l([q[i][0],q[i][1]-2,q[i][0],q[i][1]+2,E,N]);
l([q[i][0]-2,q[i][1],q[i][0]+2,q[i][1],E,N]);
Q.push(
[q[i][0]-1,q[i][1]],
[q[i][0]+1,q[i][1]],
[q[i][0],q[i][1]-1],
[q[i][0],q[i][1]+1]
)
}
}
q=Q;
if(i)setTimeout(z,0);
};
O.onchange=H=e=>{
N=O.value;
c=A.getContext('2d');
c.clearRect(0,0,W,W);
l([S,S,S,0,'#aaa',N]);
R=G=B=-50;
for(i=0;i<W;i++){
i%4||(R=(R+50)%250);
i%20||(G=(G+50)%250);
i%100||(B=(B+50)%250);
l([i,0,i,20,i>500?E:'rgb('+R+','+G+','+B+')',1]);
};
c=a.getContext('2d');
};H();
a.onmouseup=a.ontouchend=e=>{
I=c.getImageData(0,0,W,W).data;D=0;
y<25||e.button||z(B=I[(x%W+y*W)*4+0]+','+I[(x%W+y*W)*4+1]+','+I[(x%W+y*W)*4+2]+','+I[(x%W+y*W)*4+3]);
};
I=c.getImageData(0,0,W,W).data;D=0;
a.onmousemove=a.ontouchmove=e=>{
if(D){
q=[];
x=e&&(e.pageX||e.touches[0].pageX);
y=e&&(e.pageY||e.touches[0].pageY);
l([X,Y,x,y,E,N]);
X=x;
Y=y;
}
}