Hello! So, I have a pattern whereby I want to copy it with a new name, thereby having two patterns in the saved patterns list on my PB. What I want is the first pattern in the list to have an overall half max brightness and when I push the button on the PB to switch to the second pattern to have overall max full brightness. Is there a way to do this with minimal code differences between the two patterns? The max brightness setting in PB configuration file is global and not accessible to the pattern code, as far as I know, but that would be ideal.
in the render function there is likely a line like hsv(h, s, v) . You could change it to something like hsv(h, s, 0.5v) in your copy. maybe try hsv(h, s, 0.75v) as well.
Thanks. Ya, I thought about doing that, but the brightness resolution will be affected since 0-255 steps becomes 0-128 steps, for 0-1 v. Probably not an issue, but was fishing for a better way.
No matter what you do you’re going to run into that issue (unless you use higher dynamic range strips).