fix tick NaN

This commit is contained in:
jane 2021-05-26 10:30:54 -04:00
parent 82b6d6920c
commit bcc524ee5b

View file

@ -77,6 +77,9 @@ function fade(index) {
var current_tick = Math.floor((diff_cr / diff_r) * fade_ticks);
if (diff_r == 0) {
current_tick = fade_ticks;
}
// 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` +