function makeid(length) {
var result = '';
var characters = 'ABCDEF0123456789';
var charactersLength = characters.length;
for ( var i = 0; i < length; i++ ) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
}

function myLoop() {
setTimeout(function() {
pad.notifyChangeColor('#' + makeid(6));
myLoop();
}, 1600)
}

myLoop();

12 mai 2021 09:53

modifié par: Thibault
commentaire:

Visualiser
11 mars 2021 21:21

modifié par: Thibault
commentaire:

Visualiser