Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1134

Help: Rainmeter Skins • Re: Measure Audio Level

$
0
0
I don't understand why on the code many parts are being multiplied by 0. Anything multiplied by 0 will be 0.
This is based on my previous code here:
https://forum.rainmeter.net/viewtopic.php?t=44626&start=20#p230549
where I multiply with 0 but only for the first band, in order to start the "bar" from the leftmost part of the Shape meter, and also be consistent with the rest of the band shapes where I multiply with 1, 2, and so on, according to which band I'm drawing the "3D bar" for.

Rooky_89 simply posted the 0th aka the first "bar" code above, that is why things appear to not follow a "logic continuum". He just needs to apply the scaling you mentioned (i.e. multiplying all those horizontal and vertical coordinate values with #ScaleX# and #ScaleY#, respectively) for the rest of the bands too, and not just to the first (or the 0th) one, based on the screenshot he posted, that's all.

P.S. The scale multiplication should be done on the entire coordinate value, and not just on a single term from the coordinate formula, like you said as well. He should also multiply whatever X and Y of the Shape meter itself with #ScaleX# and #ScaleY#, respectively, so that the positioning of the Shape meter as a whole is scaled too, not just its size or the size of its contents.

EDIT: I just realized that this is a Shape meter, and individual shapes in it can use the Scale and Offset transform modifier instead:
https://docs.rainmeter.net/manual/meters/shape/#TransformModifiers
avoiding the need to multiply every individual shape coordinate with the offset and scaling factors. That being said, it might be more complicated to use those modifiers, since here the scale anchors are not at the individual shape's center, but at the top left point of the Shape meter...

Statistics: Posted by Yincognito — Today, 9:49 am



Viewing all articles
Browse latest Browse all 1134

Trending Articles