A visual representation of a stripped-down bubble sort algorithm producing diagonal lines pattern. Total size : 323 bytes.
M=Math;var n=128,s=768;a=[];for(l=0;l<n;l++)a[l]=M.floor(M.random()*n);g=document.getElementById("c");g.width=g.height=s;c=g.getContext("2d");setInterval("for(i=0;i<n;i++)if(a[i]<a[i+1]){b=a[i];a[i]=a[i+1];a[i+1]=b;}c.clearRect(0,0,s,s);for(i=0;i<n;i++)for(j=0;j<6;j++)for(k=0;k<5;k++)c.fillRect(j*n+i,k*n+a[i],6,6);",25);
TT1NYXRoO3ZhciBuPTEyOCxzPTc2ODthPVtdO2ZvcihsPTA7bDxuO2wrKylhW2xdPU0uZmxvb3IoTS5yYW5kb20oKSpuKTtnPWRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJjIik7Zy53aWR0aD1nLmhlaWdodD1zO2M9Zy5nZXRDb250ZXh0KCIyZCIpO3NldEludGVydmFsKCJmb3IoaT0wO2k8bjtpKyspaWYoYVtpXTxhW2krMV0pe2I9YVtpXTthW2ldPWFbaSsxXTthW2krMV09Yjt9Yy5jbGVhclJlY3QoMCwwLHMscyk7Zm9yKGk9MDtpPG47aSsrKWZvcihqPTA7ajw2O2orKylmb3Ioaz0wO2s8NTtrKyspYy5maWxsUmVjdChqKm4raSxrKm4rYVtpXSw2LDYpOyIsMjUpOw==
Original source not submitted