oh my god i fucked up the rgb_to_int thats why it doesnt work

This commit is contained in:
jane 2021-05-26 12:16:33 -04:00
parent e73e25aa30
commit 343df4cba5
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ var next_pattern = new Uint32Array(cfg.leds);
var pattern = {}
function rgb_to_int(r, g, b) {
return ((r << 8) + g) << 8 + b;
return (((r << 8) + g) << 8) + b;
}
function int_to_rgb(int) {
var r = int >> 16 & 0xFF;