Skin:
Code: Select all
[Variables]
Size=512
[Rainmeter]
Update=25
DynamicWindowSize=1
AccurateText=1
---Measures---
[Angle]
Measure=Calc
Formula=((360+Angle+5)%360)
DynamicVariables=1
---Meters---
[Container]
Meter=Image
W=(#Size#)
H=(#Size#)
SolidColor=0,0,0,255
DynamicVariables=1
[Circle]
Container=Container
Meter=Image
ImageName=#@#Circle.png
DynamicVariables=1
; This rotates without wobble/shaking
;W=(#Size#)
;H=(#Size#)
;TransformationMatrix=(Cos(Rad([Angle:])));(-Sin(Rad([Angle:])));(Sin(Rad([Angle:])));(Cos(Rad([Angle:])));(#Size#/2*(1-Sin(Rad([Angle:]))-Cos(Rad([Angle:]))));(#Size#/2*(1+Sin(Rad([Angle:]))-Cos(Rad([Angle:]))))
; This rotates with wobble/shaking
X=(#Size#/2*(1-Abs(Sin(Rad(-[Angle:])))-Abs(Cos(Rad(-[Angle:])))))
Y=(#Size#/2*(1-Abs(Sin(Rad(-[Angle:])))-Abs(Cos(Rad(-[Angle:])))))
W=(#Size#*(Abs(Sin(Rad(-[Angle:])))+Abs(Cos(Rad(-[Angle:])))))
H=(#Size#*(Abs(Sin(Rad(-[Angle:])))+Abs(Cos(Rad(-[Angle:])))))
ImageRotate=(-[Angle:])
Actual Result: shaking / wobbling is visible if you look closely at the white fill to the grey border areas
Note: I'm not sure if this is an issue based on the image meter's integer (?) dimensions, rounding errors or an unwanted "feature" of the ImageRotate option, but as you can see when using the commented TransformationMatrix part, rotation without wobbling is entirely possible and there was no need to adjust the code for rounding errors there. I would like the ImageRotate variant to work the same way in terms of visual stability.