diff options
Diffstat (limited to 'fish_render.py')
| -rw-r--r-- | fish_render.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fish_render.py b/fish_render.py index 6d24167..4924016 100644 --- a/fish_render.py +++ b/fish_render.py @@ -34,8 +34,9 @@ class Light(object): def update(self, fish): """Change color depending on where the fish is.""" if abs(self.transitioning_to - self.color) < self.step: - self.step = random_change() self.transitioning_to = pick_HSV().to_RGB() + self.step = (random_change() + * abs(self.color - self.transitioning_to)) new_background = transition( self.color, self.transitioning_to, self.step ) |
