Function Calls for Segment Brightness

Hi, I am in the process of writing a user mod that will hopefully change the brightness of a segment to (255) depending on an input then fade back to the original setting. I am just struggling with the calls to change the segments. I have been pointed to Segment::setOpacity() but I am not sure in what syntax this is to be used. Is it seg1.setOpacity(255); or Segment.setOpacity(0,255); for segment 0. Segment[0],setOpacity(255); Do I need to set the segments in code or does it use the ones already created in the web ui?

I am pretty savvey with finding what I need when there documentation available however I am stock on this one. Can’t find anything that relates to what I need.

If anyone knows of a list of functions with basic usage kicking around anywhere that would be great.

Any help would be greatly appreciated.

use
Segment& seg = strip.getSegment(IDnumber);
seg.setOpacity(brightness);
Segments are created by the system or the user, there can be many segments set.