A downloadable nn

let textElement = document.createElement('div');
textElement.innerText = "funny";
textElement.style.fontSize = "30px";
textElement.style.fontWeight = "bold";
document.body.appendChild(textElement);

const colors = ['red', 'green', 'blue', 'yellow', 'purple', 'orange'];
let colorIndex = 0;

function changeColor() {
textElement.style.color = colors[colorIndex];
colorIndex = (colorIndex + 1) % colors.length;
}

// Flash colors every 500 milliseconds
setInterval(changeColor, 500);

StatusReleased
CategoryOther
Authorsok
Tagshhh

Download

Download
when the 41 kB

Install instructions

let textElement = document.createElement('div');
textElement.innerText = "Flashing Text!";
textElement.style.fontSize = "30px";
textElement.style.fontWeight = "bold";
document.body.appendChild(textElement);

const colors = ['red', 'green', 'blue', 'yellow', 'purple', 'orange'];
let colorIndex = 0;

function changeColor() {
textElement.style.color = colors[colorIndex];
colorIndex = (colorIndex + 1) % colors.length;
}

// Flash colors every 500 milliseconds
setInterval(changeColor, 500);

Comments

Log in with itch.io to leave a comment.

Game