add more logging
This commit is contained in:
parent
ca22756965
commit
e7ab3f5a43
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ function fade(index) {
|
||||||
var sign_r = diff_r === Math.abs(diff_r) ? 1 : -1;
|
var sign_r = diff_r === Math.abs(diff_r) ? 1 : -1;
|
||||||
var sign_g = diff_g === Math.abs(diff_g) ? 1 : -1;
|
var sign_g = diff_g === Math.abs(diff_g) ? 1 : -1;
|
||||||
var sign_b = diff_b === Math.abs(diff_b) ? 1 : -1;
|
var sign_b = diff_b === Math.abs(diff_b) ? 1 : -1;
|
||||||
|
console.log(`${diff_r} ${sign_r} ${diff_g} ${sign_g} ${diff_b} ${sign_b}`);
|
||||||
var interval_r = sign_r * Math.ceil(Math.abs(diff_r) / fade_ticks);
|
var interval_r = sign_r * Math.ceil(Math.abs(diff_r) / fade_ticks);
|
||||||
var interval_g = sign_g * Math.ceil(Math.abs(diff_g) / fade_ticks);
|
var interval_g = sign_g * Math.ceil(Math.abs(diff_g) / fade_ticks);
|
||||||
var interval_b = sign_b * Math.ceil(Math.abs(diff_b) / fade_ticks);
|
var interval_b = sign_b * Math.ceil(Math.abs(diff_b) / fade_ticks);
|
||||||
|
|
Loading…
Reference in a new issue