I'm working on a Rainmeter skin with some meters for my drive usage levels (how full they are). Each drive has it's own meter, scaled proportionately. I have 3 drives: 250gb, 750gb, and 1500gb. Proportionately, I sized their meters at a 5:1 ratio, so the 250gb drive's meter was 50 pixels long, the 750gb was 150px, and the 1500gb was 300px - pretty reasonable sizing. Layered over each drive is a numeric value representing how many gb's of free space remain on each drive.
Recently, I got an SSD, and so now I need to toss a 40gb drive (partition, actually - irrelevant) into the mix. At the aforementioned ratio, it would be sized at 8px - large enough to glean approximately how much free space remains graphically, but not large enough to place the numeric value over the meter.
So what I'd like to do is to change the sizing of the meters from a direct 5:1 ratio to something more complex. I'm not sure which mathematical term I'm looking for - logarithmic, exponential, whatever - but basically I want every ten-fold increase in drive size to result in a doubling of the meter's width. If fed convenient values, it would result in something like this, the final values of which I can multiply to get the scale correct:
10 = 1
100 = 2
1,000 = 4
10,000 = 8
Can anyone point me in the right direction, preferably using the functions available
here?