Using the fillpath method, transparency cannot be set, and regardless of how much transparency is set, the transparency of the filled color is always 1.0
I am using this method to display spectrograms, and every time I call repaint(), I don’t know if it is related to this. The only problem now is that I cannot display a color with transparency. No matter how I modify it, this color always appears
The whole body of your paint() runs in a outer loop of scopeSize iterations.
With every run of that outer loop, you draw your scope at 50% alpha, but you are drawing it scopeSize times, one over the other, and the results comes out as opaque if scopeSize is large enough.
It’s like painting on a wall with a brush over and over again over the same spot, eventually the spot ends up being opaque even if a single pass of the brush were to leave it semi-transparent.
I think you should remove the whole outer loop altogether, probably that was left there by a copy/paste (also because the index i is not used anywhere else aside from the inner loop, which declares its own i anyway which shadows the outer i)