I'm not entirely sure this is completely correct, but I tend to say it is.
I think the opacity of a masked meter is equal to the product of visibilities of the meter itself and its container.
Here is an example:
Code: Select all
[Variables]
Transp=150
[MeterMask]
Meter=STRING
X=100
Y=100
Padding=15,5,15,5
FontColor=220,220,220,#Transp#
FontSize=108
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=CenterCenter
AntiAlias=1
Text=A
DynamicVariables=1
[MeterCircle]
Meter=Shape
X=0
Y=0
Shape=Ellipse 0,0,80 | Extend MyModifiers1
MyModifiers1=Fill Color 255,0,0,#Transp# | StrokeWidth 4 | Stroke Color 46,115,31,255
Container=MeterMask
[Meterstring]
Meter=STRING
X=200
Y=100
Padding=15,5,15,5
FontColor=255,0,0,(255*(#Transp#/255)*(#Transp#/255))
FontSize=108
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=CenterCenter
AntiAlias=1
Text=B
In this example Transp is a transparency value, varying between 0 and 255. The [MeterMask] meter, which is the container of the next meter, named [MeterCircle], is set to a transparency of
#Transp# (through its FontColor option), while [MeterCircle] (which is the "masked" meter) has the same transparency (
#Transp#). The visibility of what you see from the above two meter after applying the container is the same (at least visually) as the visibility of the [Meterstring] meter, which has no container, its transparency depending only on the last value of its FontColor option, which is set to
(255*(#Transp#/255)*(#Transp#/255)). In this expression
(#Transp#/255) is the transparency of the main meter ([MeterCircle]) and of the container meter ([MeterMask]), both expressed as numbers between 0 and 1 (this in fact is a percent). These two transparencies have been multiplied together (which gives the transparency same way as a number in the 0 - 1 range) and multiplied with 255, to get the "normal" transparency value used in Rainmeter codes.
As said the above two meters are practically same opaque (or transparent), so I believe (well, in fact I'm absolutely positive) the get the transparency of a meter with a container, you have to multiply the transparencies of these two meters together, as descriobed above.
Maybe a dev should confirm (or refute) if I am right about this.