Edit 1
To make it clearer, what I want is a image that rotates along an axis, like a rotating platform. There is a Meter called Rotator, that rotates it in the Z-axis (So it looks like you are looking at it from above). I want to rotate on the X-axis. Here's the current code I'm using to rotate it.
Code: Select all
[Rainmeter]
Update=10
@Include=#@#Variables.inc
[Variables]
ImgH=360
ImgW=260
[SkinBackground]
Meter=Image
X=0
Y=0
H=#ImgH#
W=#imgW#
SolidColor=0,0,0,1
[CalcOffsetX]
Measure=Calc
Formula=#ImgW#/2
[CalcOffsetY]
Measure=Calc
Formula=#ImgH#/2
[CalcIncrement]
Measure=Calc
Formula=CalcIncrement+0.01
IfAboveValue=0.95
IfAboveAction=[!SetOption CalcIncrement Formula "CalcIncrement-0.01"][!SetOption CalcFactor Formula "CalcIncrement**2-0.9"]
IfBelowValue=-0.95
IfBelowAction=[!SetOption CalcIncrement Formula "CalcIncrement+0.01"][!SetOption CalcFactor Formula "(CalcIncrement**2-0.9)*-1"]
[CalcFactor]
Measure=Calc
Formula=(CalcIncrement**2-0.9)*-1
OnUpdateAction=[!SetOption ImageLogo TransformationMatrix "[CalcFactor];0;0;1;[CalcOffsetX]+[CalcOffsetX]*[CalcFactor];[CalcOffsetY]+[CalcOffsetY]*[CalcFactor]"][!Redraw]
[ImageLogo]
Meter=Image
ImageName=#ImgYoRHaLogo#
X=([SkinBackground:W]/-2)
Y=([SkinBackground:H]/-2)
H=[SkinBackground:H]
W=[SkinBackground:W]
AntiAlias=1
Still not clear enough, so here is the image that shows what I want.
Last Edit
I think i failed to explain what I want, people failed to understand what I meant, and no one saw this as a useful measure. I stop here.
This is what the code in edit 1 does. It makes the image spin. You can see it is an asymmetric one as well, but it spins. Not simply flip, not rotating around a point on the screen, not 3D rendering. Simply a trick to make a 2D image 'appears' flipping in the screen, rotating around the Y-axis (not X as I wrongly said many times).