mirror of
https://github.com/wled/WLED.git
synced 2025-07-23 10:46:33 +00:00
slight change to color parameters
added more white, changed function return value of fully random palette function
This commit is contained in:
parent
ca05aa84ff
commit
e0f89beebb
@ -111,7 +111,7 @@ CRGBPalette16 generateHarmonicRandomPalette(CRGBPalette16 &basepalette)
|
|||||||
palettecolors[i].value = random8(220,255);
|
palettecolors[i].value = random8(220,255);
|
||||||
}
|
}
|
||||||
//allow one to be lower
|
//allow one to be lower
|
||||||
palettecolors[3].saturation = random8(80,255);
|
palettecolors[3].saturation = random8(20,255);
|
||||||
palettecolors[3].value = random8(80,255);
|
palettecolors[3].value = random8(80,255);
|
||||||
|
|
||||||
|
|
||||||
@ -198,13 +198,11 @@ CRGBPalette16 generateHarmonicRandomPalette(CRGBPalette16 &basepalette)
|
|||||||
|
|
||||||
CRGBPalette16 generateRandomPalette(void) //generate fully random palette
|
CRGBPalette16 generateRandomPalette(void) //generate fully random palette
|
||||||
{
|
{
|
||||||
CRGBPalette16 random = CRGBPalette16(
|
return CRGBPalette16(
|
||||||
CHSV(random8(), random8(160, 255), random8(128, 255)),
|
CHSV(random8(), random8(160, 255), random8(128, 255)),
|
||||||
CHSV(random8(), random8(160, 255), random8(128, 255)),
|
CHSV(random8(), random8(160, 255), random8(128, 255)),
|
||||||
CHSV(random8(), random8(160, 255), random8(128, 255)),
|
CHSV(random8(), random8(160, 255), random8(128, 255)),
|
||||||
CHSV(random8(), random8(160, 255), random8(128, 255)));
|
CHSV(random8(), random8(160, 255), random8(128, 255)));
|
||||||
|
|
||||||
return generateHarmonicRandomPalette(random);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void colorHStoRGB(uint16_t hue, byte sat, byte* rgb) //hue, sat to rgb
|
void colorHStoRGB(uint16_t hue, byte sat, byte* rgb) //hue, sat to rgb
|
||||||
|
Loading…
x
Reference in New Issue
Block a user