sdasdasdasdsdasd# Please enter the commit message for your changes. Lines starting
This commit is contained in:
parent
2f23b0d06e
commit
038dd3b7d4
1 changed files with 2 additions and 1 deletions
|
@ -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}`);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue