Best method for controlling brightness?

What would be the best programatic method to control brightness? I assume I can adjust the V in the HSV() function, but is there another systematic way to manage brightness?

Yes, thats the best way to do it programatically. There’s also the global brightness slider in settings.

You can clamp it between 0 and 1 before applying your brightness modifier to avoid going over that level.