order of operations
This commit is contained in:
parent
0fd0f72523
commit
ca22756965
1 changed files with 3 additions and 3 deletions
|
@ -89,9 +89,9 @@ function fade(index) {
|
|||
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 current_tick_r = Math.abs(Math.floor((diff_cr / diff_r) * fade_ticks));
|
||||
var current_tick_g = Math.abs(Math.floor((diff_cg / diff_g) * fade_ticks));
|
||||
var current_tick_b = Math.abs(Math.floor((diff_cb / diff_b) * fade_ticks));
|
||||
var current_tick_r = Math.floor(Math.abs(diff_cr / diff_r) * fade_ticks);
|
||||
var current_tick_g = Math.floor(Math.abs(diff_cg / diff_g) * fade_ticks);
|
||||
var current_tick_b = Math.floor(Math.abs(diff_cb / diff_b) * fade_ticks);
|
||||
if (diff_r == 0 ||
|
||||
current.r + interval_r >= final.r ||
|
||||
current_tick_r + 1 >= fade_ticks) {
|
||||
|
|
Loading…
Reference in a new issue