From: Tomas Wenström Date: Thu, 24 Aug 2017 20:12:13 +0000 (+0200) Subject: Another adjustment to 'under the sea' X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=4c299de64faa964003d9bb14b7bee84f10c4f9e0;p=kaka%2Fcakelight.git Another adjustment to 'under the sea' --- diff --git a/src/kaka/cakelight/AmbientMode.java b/src/kaka/cakelight/AmbientMode.java index 29a861c..2b10e31 100644 --- a/src/kaka/cakelight/AmbientMode.java +++ b/src/kaka/cakelight/AmbientMode.java @@ -65,7 +65,7 @@ public class AmbientMode extends Mode { // TODO split into DynamicAmbient and St double x = frame.xOf(i); double y = frame.yOf(i); double b = Math.pow(Math.min(1, Math.max(0, noise.getr(0.0, 1.0, 1, x, y, time / 7000.0))), 1.5); - double g = Math.min(b, Math.max(0, noise.getr(-1.0, 1.0, 0.5, x*3, y*3, time / 5000.0))); + double g = Math.min(1, Math.max(0, noise.getr(-b, b, 0.5, x*3, y*3, time / 5000.0))); frame.setLedColor(i, Color.rgb(0, g, b)); } } else if (type == 2) {