modify logs

This commit is contained in:
jane 2021-05-25 23:53:42 -04:00
parent 6110039314
commit d636fc88d2

View file

@ -68,15 +68,16 @@ function fade(index) {
var interval_g = diff_g / fade_ticks;
var interval_b = diff_b / fade_ticks;
console.log(`original: ${original.r} ${original.g} ${original.b}` +
`current: ${current.r} ${current.g} ${current.b}` +
`final: ${final.r} ${final.g} ${final.b}` +
`interval: ${interval_r} ${interval_g} ${interval_b}`)
// console.log(`original: ${original.r} ${original.g} ${original.b}\n` +
// `current: ${current.r} ${current.g} ${current.b}\n` +
// `final: ${final.r} ${final.g} ${final.b}\n` +
// `interval: ${interval_r} ${interval_g} ${interval_b}\n`)
if (final.r - current.r < interval_r &&
final.g - current.g < interval_g &&
final.b - current.b < interval_b
) {
console.log("FINISHED FADE FOR " + index);
pixels[index] = next_pattern[index];
pixel_cache[index] = next_pattern[index];
}