It is currently March 28th, 2024, 7:16 pm

trick: nicer Rotator meters

Tips and Tricks from the Rainmeter Community
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

trick: nicer Rotator meters

Post by moshi »

there is one thing that has bothered me in all the years with Rainmeter: there is a bug in the Rotator meter that makes images not rotating round, but slightly elliptical.

as this bug is probably not noticable for most people and likely not will be fixed, i thought i could share the solution i found to fix it.

first have a look at what i mean: look at the second hand. on the left hand side you see how it looks if you follow the manual and the tutorial:
http://docs.rainmeter.net/manual-beta/meters/rotator
http://docs.rainmeter.net/tips/rotate-an-image-around-its-center
on the right hand side you see how it looks after the fix:
clock2.jpg
everything looks nice between 0 and 15 sec, then it gets worse until 30 sec, stays bad until 45 sec, and then gets better again.

now the trick:
what you got to do is creating a Rotator image, just as if the manual/tutorial was right. make it a square image, that will make things easier. in this case make a 31x31 pixel image.
but when you enter the code in the skin's ini file, just pretend the image is one pixel smaller, so for an 31x31 pixel image use:

Code: Select all

[Rotator]
W=30
H=30
OffsetX=15
OffsetY=15
yep, it's weird ... but it works. no matter whether the size is odd or even, no matter whether the image is small or large. just pretend it is one pixel smaller than it actually is and should be.
clock1.jpg
i have attached an example skin, so you can see it moving:
You do not have the required permissions to view the files attached to this post.