Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A Pen by a boy.
var c=0x500;
function change(){
c=(c+13)%0xfff;
var color=("000"+c.toString(16)).substr(-3,3);
console.log(color);
document.body.style.backgroundColor="#"+color;
};
setInterval("change()",1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.