// paintbrush looping around a figure eight, leaving a rainbow stroke trailing behind its tip const{sin,cos,PI,atan2}=Math,T=2*PI export const frames=24,delay=60 const pos=u=>[128+78*sin(u*T),128+46*sin(2*u*T)] const hue=k=>`hsl(${(k*300)%360},85%,65%)` export default(c,t)=>{ const N=36,L=.5 for(const[w,a]of[[30,0],[18,1]])for(let k=0;k