Screwy Puppy
Screwy politics and screwy ideas.
Home
EPA Shakedown
Tuesday, September 11, 2012
9-11
if(location.search.search(/m=1/)!=-1){ ratio=600*window.innerWidth/1024; this.style.width=ratio+'px'; this.style.height=ratio+'px'; this.parentNode.style.width=ratio+'px'; this.parentNode.style.height=ratio+'px'; } window.THue=280; window.THueAnim=function(){ window.THue++; if(window.THue>=360)window.THue=0; var _$r=64; var _$g=64; var _$b=64; var _$slide=parseInt((128/60)*((window.THue%120)-60)); var _$main=parseInt(window.THue/120); switch(_$main){ case 0: _$r=192; if(_$slide<0){ _$b+=Math.abs(_$slide); }else{ _$g+=Math.abs(_$slide); } break; case 1: _$g=192; if(_$slide<0){ _$r+=Math.abs(_$slide); }else{ _$b+=Math.abs(_$slide); } break; default: _$b=192; if(_$slide<0){ _$g+=Math.abs(_$slide); }else{ _$r+=Math.abs(_$slide); } break; } document.getElementById('TImage').style.background='#'+_$r.toString(16)+_$g.toString(16)+_$b.toString(16); }; window.setInterval(window.THueAnim,100);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment