From: Tomas Wenström Date: Mon, 14 Jun 2021 20:07:25 +0000 (+0200) Subject: Fine-tune fire mode X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;p=kaka%2Fcakelight.git Fine-tune fire mode --- 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)))); } }