Brightness effect

I need an effect that dims all LEDs over a set period of time and range of brightness repeatedly. At the moment only one solid color is involved, but in the future I see this maybe as a global effect over any active effect in use.

See Nightlight function?