diff options
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/animations')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/gui/animations/ColorAnimation.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/animations/ColorAnimation.java b/src/main/java/cc/polyfrost/oneconfig/gui/animations/ColorAnimation.java index 420f1d0..39130f0 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/animations/ColorAnimation.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/animations/ColorAnimation.java @@ -46,4 +46,11 @@ public class ColorAnimation { this.palette = palette; prevState = 3; } + + public void setColors(float[] colors) { + redAnimation = new DummyAnimation(colors[0]); + greenAnimation = new DummyAnimation(colors[1]); + blueAnimation = new DummyAnimation(colors[2]); + alphaAnimation = new DummyAnimation(colors[3]); + } } |