From 889498b2436b19f3d126de2ce3f61eeb8817efa2 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 29 Sep 2024 06:30:55 -0500 Subject: [PATCH] fix: hue --- app/react/components/dom/damages.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/react/components/dom/damages.jsx b/app/react/components/dom/damages.jsx index 13bde85..ae30e3e 100644 --- a/app/react/components/dom/damages.jsx +++ b/app/react/components/dom/damages.jsx @@ -28,7 +28,6 @@ function damageHue(type) { class Damage { elapsed = 0; - hue = [0, 30]; offsetX = 0; offsetY = 0; step = 0; @@ -111,7 +110,7 @@ class Damage { easeInOutExpo( Math.abs((this.elapsed % 0.3) - 0.15) / 0.15, this.hueStart, - this.hueEnd, + this.hueEnd - this.hueStart, 1, ), );