Looking for a coding trick.

Looking for a coding trick. Depending if it is Day or Night, I set different colors.

In day I use CRGB::White.

With a global parm of Night, I use CHSV(hue, sat, brightness).

The problem is I can’t control the brightness (value) with White other than fadeToBlackBy. This means I have lots of extra code and in some cases different scene routines entirely.

So, any coding tricks to control brightness of White. Or a method to create White with CHSV? Thanks.

Putting the second value(saturation) at 0 and changing the third value (value aka brightness) should dim/brighten the light.

For white, if doesn’t matter what the first color is.

So for white at full brightness

chsv(0, 0, 255);

For half brightness

chsv(0, 0, 126);

h stands for Hue (what color)
s stands for saturation(how much color, 0 would be no color aka white)
v stands for value(the brightness of the hue/saturation mixture.

@Mr_Happy
sweet! Thanks. Code just got a lot cleaner!