Universal glitter.
This commit is contained in:
parent
27d7f5f190
commit
04020d5ae2
@ -2924,14 +2924,14 @@ void glitter_base(uint8_t intensity, uint32_t col = ULTRAWHITE) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Rainbow with glitter, inspired by https://gist.github.com/kriegsman/062e10f7f07ba8518af6
|
//Glitter with palette background, inspired by https://gist.github.com/kriegsman/062e10f7f07ba8518af6
|
||||||
uint16_t mode_glitter()
|
uint16_t mode_glitter()
|
||||||
{
|
{
|
||||||
if (!SEGMENT.check2) mode_palette();
|
if (!SEGMENT.check2) mode_palette(); // use "* Color 1" palette for solid background (replacing "Solid glitter")
|
||||||
glitter_base(SEGMENT.intensity);
|
glitter_base(SEGMENT.intensity, SEGCOLOR(2) ? SEGCOLOR(2) : ULTRAWHITE);
|
||||||
return FRAMETIME;
|
return FRAMETIME;
|
||||||
}
|
}
|
||||||
static const char _data_FX_MODE_GLITTER[] PROGMEM = "Glitter@!,!,,,,,Overlay;;!;;m12=0"; //pixels
|
static const char _data_FX_MODE_GLITTER[] PROGMEM = "Glitter@!,!,,,,,Overlay;1,2,Glitter color;!;;pal=0,m12=0"; //pixels
|
||||||
|
|
||||||
|
|
||||||
//Solid colour background with glitter
|
//Solid colour background with glitter
|
||||||
@ -2941,7 +2941,7 @@ uint16_t mode_solid_glitter()
|
|||||||
glitter_base(SEGMENT.intensity, SEGCOLOR(1));
|
glitter_base(SEGMENT.intensity, SEGCOLOR(1));
|
||||||
return FRAMETIME;
|
return FRAMETIME;
|
||||||
}
|
}
|
||||||
static const char _data_FX_MODE_SOLID_GLITTER[] PROGMEM = "Solid Glitter@,!;Bg,Glitter color!;;;m12=0";
|
static const char _data_FX_MODE_SOLID_GLITTER[] PROGMEM = "Solid Glitter@,!;Bg,Glitter color;;;m12=0";
|
||||||
|
|
||||||
|
|
||||||
//each needs 19 bytes
|
//each needs 19 bytes
|
||||||
|
Loading…
Reference in New Issue
Block a user