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

General Discussion • Re: Clamp and Shape % problems.

$
0
0
I worked out that the formula should be:
((CurrentValue / 255)*(-#BarH#))
BarH is 50.

This seems to work, this time. But I can't seem to get the Clamp to work correctly which seems to give an incorrect value to the Percentage gained:
Shape2=Rectangle 0, 0, #BarW#, (([#[#CURRENTSECTION]]/255)*(-#BarH#)) | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]],#BarAlpha#

Statistics: Posted by sl23 — Today, 1:13 pm



Viewing all articles
Browse latest Browse all 1056

Trending Articles