Dolda2000 GitWeb
/
kaka
/
cakelight.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e147b56
)
Fine-tune fire mode
master
author
Tomas Wenström
<tomas@cakepi>
Mon, 14 Jun 2021 20:07:25 +0000
(22:07 +0200)
committer
Tomas Wenström
<tomas@cakepi>
Mon, 14 Jun 2021 20:07:25 +0000
(22:07 +0200)
src/kaka/cakelight/mode/FireMode.java
patch
|
blob
|
blame
|
history
diff --git
a/src/kaka/cakelight/mode/FireMode.java
b/src/kaka/cakelight/mode/FireMode.java
index
02db5b4
..
85afc5d
100644
(file)
--- 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 / 35
00.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 / 50
00.0))), 1.5);
+ frame.setLedColor(i, getColorAt(
Math.min(1, Math.max(0, (v + y) * 0.5))
));
}
}