sdasdasdasdsdasd# Please enter the commit message for your changes. Lines starting

This commit is contained in:
jane 2021-05-26 12:10:16 -04:00
parent 2f23b0d06e
commit 038dd3b7d4

View file

@ -118,10 +118,11 @@ function fade(index) {
pixels[index] = rgb_to_int(current.r + interval_r,
current.g + interval_g,
current.b + interval_b);
let prev = int_to_rgb(pixel_cache[index]);
console.log(`${current_tick_r} ${current_tick_g} ${current_tick_b}: `
+ `CURRENT COLOR: ${current.r} ${current.g} ${current.b} NEW COLOR: ${current.r + interval_r} ${current.g + interval_g} ${current.b + interval_b} ` +
`FINAL: ${final.r} ${final.g} ${final.b} ` +
`\nINTERVAL: ${interval_r} ${interval_g} ${interval_b} ` +
`PREVIOUS: ${int_to_rgb(pixel_cache[index])}`);
`PREVIOUS: ${prev.r} ${prev.g} ${prev.b}`);
}
}