This commit is contained in:
jane 2021-05-26 12:15:04 -04:00
parent a24ea4d300
commit e73e25aa30
1 changed files with 4 additions and 4 deletions

View File

@ -35,10 +35,10 @@ function tick_pattern() {
console.log("TICKING PATTERN")
for (let i = 0; i < cfg.leds; i++) {
var r = Math.floor(Math.random() * 100)
var g = Math.floor(Math.random() * 100);
var b = Math.floor(Math.random() * 100);
next_pattern[i] = ((r << 8) + g) << 8 + b;
var r = Math.floor(Math.random() * 256)
var g = Math.floor(Math.random() * 256);
var b = Math.floor(Math.random() * 256);
next_pattern[i] = rgb_to_int(r, g, b);
}
}