It is currently April 25th, 2024, 1:49 am

Reflecting clock

Get help with creating, editing & fixing problems with skins
Canayon9
Posts: 10
Joined: September 3rd, 2012, 12:55 pm

Reflecting clock

Post by Canayon9 »

I want to reflect a clock onto water. I've been searching a lot of forums but I can't really find what I want. I tried using Angle=, but it doesnt look like a reflection, just a rotation. This is the code for the clock if it helps:

[Variables]
Size1=74
Size2=18
ClockSize=900
WhiteHands=255,255,255,255
BlackHands=0,0,0,245

[MeasureTime]
Measure=Time
Format=%#I:%M

[MeterTime]
MeasureName=MeasureTime
Meter=STRING
X=236
Y=0
FontColor=FFCC33
FontSize=125
Font=Jalane_light
StringAlign=CENTER
AntiAlias=1
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Reflecting clock

Post by Kaelri »

You'll probably need to use a transformation matrix for this. There's a tutorial for using TransformationMatrix here. Be warned, though, that this is a very advanced feature and not for the faint of heart.
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Reflecting clock

Post by MerlinTheRed »

Actually, in this case it might not be that hard, since mirroring an object at a line parallel to a coordinate is rather simple. There is even an example for it in the documentation for TransformationMatrix.

TransformationMatrix=1;0;0;-1;0;100

Replace the "100" with two times the y coordinate you want to flip along. E.g. if you want to flip along Y = 125, replace it with 250.

You might also want to adjust the alpha value of the mirrored part to make it more realistic.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Reflecting clock

Post by jsmorley »

Just be aware that you can't really get an effective "perspective" effect with TransformationMatrix, so the effect will be interesting, but just a tad unrealistic.
Canayon9
Posts: 10
Joined: September 3rd, 2012, 12:55 pm

Re: Reflecting clock

Post by Canayon9 »

Thanks it works great