diff --git a/js/koi/weather/weather.js b/js/koi/weather/weather.js index 7b8f82a8..3edc13ac 100644 --- a/js/koi/weather/weather.js +++ b/js/koi/weather/weather.js @@ -56,7 +56,7 @@ Weather.prototype.setState = function(state) { this.applyState(state.lastState); this.applyState(state.state); - this.transition = this.transitionPrevious = Math.min(1, state.time / (1 / this.TRANSITION_SPEED)); + this.transition = this.transitionPrevious = Math.min(1, state.time * this.TRANSITION_SPEED); this.filter.r = this.filterPrevious.r + (this.filterCurrent.r - this.filterPrevious.r) * this.transition; this.filter.g = this.filterPrevious.g + (this.filterCurrent.g - this.filterPrevious.g) * this.transition; this.filter.b = this.filterPrevious.b + (this.filterCurrent.b - this.filterPrevious.b) * this.transition;