mirror of
https://github.com/AlexGyver/GyverLamp2.git
synced 2025-08-07 08:40:35 +03:00
v0.21b
This commit is contained in:
@@ -233,12 +233,13 @@ void effectsRoutine() {
|
||||
FastLED.clear();
|
||||
FOR_k(0, (thisScale >> 5) + 1) {
|
||||
FOR_i(0, cfg.length) {
|
||||
byte thisPos = inoise8(i * 10 - (now.weekMs >> 1) * CUR_PRES.speed / 255, k * 10000);
|
||||
//byte thisPos = inoise8(i * 10 - (now.weekMs >> 1) * CUR_PRES.speed / 255, k * 10000);
|
||||
byte thisPos = inoise8(i * 10 + k * 10000, (now.weekMs >> 1) * CUR_PRES.speed / 255);
|
||||
thisPos = map(thisPos, 50, 200, 0, cfg.width);
|
||||
byte scale = 3;
|
||||
FOR_j(0, scale) {
|
||||
CRGB color = ColorFromPalette(paletteArr[CUR_PRES.palette - 1], scalePal(j * 255 / scale), 255, LINEARBLEND);
|
||||
color.fadeToBlackBy(j * 180 / scale);
|
||||
color.fadeToBlackBy(j * 255 / scale);
|
||||
if (j == 0) {
|
||||
setPixOverlap(thisPos, i, color);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user