I've been searching around, but haven't really found a solution to what I'm trying to do...
I would like the output of a measure (a number between 0 -100) to directly set an RGB value of the fonts colour. So far I have this:
Code: Select all
[MeasureSrvLvl]
Measure=WebParser
URL=[MeasureStats]
StringIndex=14
[MeasureSrvLvlColour]
Measure=Calc
Formula=255 / 100 * MeasureSrvLvl
[MeterSrvLvl]
MeterStyle=Text
FontColor=[MeasureSrvLvlColour],0,0
MeasureName=MeasureSrvLvl
Meter=STRING
X=(#WIDTH#*0.1)
Y=(#HEIGHT#*0.05)
Prefix="Srv Lvl: "
Postfix="%"
So if for example [MeasureSrvLvl] is equal to 50.47, [MeasureSrvLvlColour] becomes 128.6985 ...
So my questions are:
Firstly how do I reduce [MeasureSrvLvlColour] down to zero decimal places, and secondly how would I use that to set just the red value of the font colour?
[EDIT: Y'know, I think I got it. It's working now... I had a mistake in my MeterStyle right up at the top. ]