Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //made for use on http://www.trex-game.skipser.com/
- //hard to look at but mainly a test
- //made in under 5 minutes because ya boy is bored as fuck
- var red = 0, green = 0, blue = 0;
- var incr = setInterval(function(){
- if(red < 255){
- red++;
- $("#t").css("background-color","rgba(" + red.toString() + "," + green.toString() + "," + blue.toString() + ", 1)")
- } else if(green < 255){
- green++;
- $("#t").css("background-color","rgba(" + red.toString() + "," + green.toString() + "," + blue.toString() + ", 1)")
- } else if(blue < 255){
- blue++;
- $("#t").css("background-color","rgba(" + red.toString() + "," + green.toString() + "," + blue.toString() + ", 1)")
- } else if(red >= 255 && green >= 255 && blue >= 255){
- red = 0;
- blue = 0;
- green = 0;
- }
- }, 7);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement