From ea222921e80c3a09be055c825cded4e6de5f11fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tomas=20Wenstr=C3=B6m?= Date: Mon, 14 Jun 2021 22:07:25 +0200 Subject: [PATCH] Fine-tune fire mode --- src/kaka/cakelight/mode/FireMode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kaka/cakelight/mode/FireMode.java b/src/kaka/cakelight/mode/FireMode.java index 02db5b4..85afc5d 100644 --- a/src/kaka/cakelight/mode/FireMode.java +++ b/src/kaka/cakelight/mode/FireMode.java @@ -24,8 +24,8 @@ public class FireMode extends AmbientMode { for (int i = 0; i < config.leds.getCount(); i++) { double x = frame.xOf(i); double y = frame.yOf(i); - double v = Math.pow(Math.min(1, Math.max(0, noise.getr(0.0, 1.0, 1, x, y - (time / 7000.0), time / 3500.0))), 1.5); - frame.setLedColor(i, getColorAt(v * y)); + double v = Math.pow(Math.min(1, Math.max(0, noise.getr(0.0, 1.0, 1, x * 10.0, y + (time / 2500.0), time / 5000.0))), 1.5); + frame.setLedColor(i, getColorAt(Math.min(1, Math.max(0, (v + y) * 0.5)))); } } -- 2.11.0