Journals

Oskar Potatis15 years ago2009-04-21 13:14:51 UTC 12 comments
JavaScript fun!
javascript:var size="40px",opacity=0.25,off=20,color=0,mouseIsDown=false;function set(){size=Number(prompt("size (px)",size.substr(0,size.length-2)));if(isNaN(size)||size<0.5)size=40;else size=Math.round(size);off=Math.floor(size/2);size+="px";opacity=Number(prompt("transparency (\%)",Math.round((1-opacity)*100)));if(isNaN(opacity)||opacity<0||opacity>=99.5)opacity=1;else opacity=1-(opacity/100);};set();alert("Hold down the left mouse button while moving your mouse to paint.\nTo change settings press the right mouse button.\n\nCoded by potatis_invalido.");document.addEventListener("mouseup",function( e){mouseIsDown=false;e.stopPropagation();e.preventDefault();if(e.button==2)setTimeout(set,0);},false);document.addEventListener("mousedown",function( e){if(!e.button)mouseIsDown=true;e.stopPropagation();e.preventDefault();},false);document.addEventListener("mousemove",function( e){if(!mouseIsDown)return;var el=document.createElement("div");el.style.position="absolute";el.style.width=el.style.height=size;el.style.zIndex="99999";if(++color==360)color=0;el.style.opacity=opacity;el.style.background="hsl("+color+",100%,50%)";el.style.left=(e.pageX-off)+"px";el.style.top=(e.pageY-off)+"px";document.body.appendChild(el);},false);

Copy it to your browser's address bar. Doesn't work in IE.
This is what I do in school when I'm bored.
Oskar Potatis15 years ago2009-01-15 18:16:55 UTC 23 comments
Hi thar!
User posted image
Oskar Potatis16 years ago2008-11-13 22:00:03 UTC 36 comments
I just ordered lots of computer parts :D
Euros / US dollars
169 / 216 Intel Core 2 Duo E8400 3,0GHz Box (CPU)
175 / 223 Biostar TPower I45 (Motherboard)
246 / 314 Asus Radeon Extreme AH4870/HTDI 512MB (Graphics card)
37 / 47 Kingston HyperX 2 * 1GB DDR2 1066MHz (RAM)
117 / 149 Cooler Master Real Power 700W Modular (PSU)