rightalfa.blogg.se

Rainmeter flipclock
Rainmeter flipclock














| zoomx skewx movex | | zooma skewa movea | | zoomx*zooma+skewx*skewb+movex*0 zoomx*skewa+skewx*zoomb+movex*0 zoomx*movea+skewx*moveb+movex*1 | Zoom: TransformationMatrix=#Zoom# 0 0 #Zoom# 0 0 create fontPadding=0,(-#fontSize#*0.49),0,(-#fontSize#*0.32) to use it like Padding=#fontPadding#, or create widthRatio=0.67 and charCount=8 to use them like X=(#fontSize#*#widthRatio#*#charCount#/2) on, but these are just various ways to write these things and don't help in avoiding value adjustments on changing the font anyway. In theory, everything could be "parameterized" by creating the appropriate variables and using them in the corresponding places, e.g. The paddings will have to be adjusted if the font or its size changes. The +0 is the vertical gap between original and reflection, I let it there for clarity. I got one more bonus for this particular case though: no more factors or multipliers to account for font glyph side bearings, simply set negative paddings for the text to get rid of the bearings and then the TM formulas can use the plain which now is stricly the text bounding box (at least in terms of height, didn't bother with the width):

rainmeter flipclock

To get the latter from the former (which is what we need, as the adjacent is the text height and the opposite is the text movement), you have to multiply the former with the tangent of the angle, since tan(angle)=sin(angle)/cos(angle) and the fraction dividers are reductible on such multiplications: * tan(angle) = * =. The catheti or sides of the right triangle are hypothenuse*cos(angle) for the adjacent one and hypothenuse*sin(angle) for the opposite one. In this case, I didn't even need to deal with matrix multiplication like balala mentioned, it was a matter of simple right triangle geometry. No problem, I hope you'll be able to use the info in your other skin.

#RAINMETER FLIPCLOCK HOW TO#

I could not figure out the offset because the skin is scaled using that same TransformationMatrix (i.e., I know how to scale it, and I know how to skew it, but I could not figure out how to do both at the same time). If needed, I'll be happy to help you with this, if you are asking.Ĭool, thanks! I was actually needing this info for another skin I am using, so I'll give this a shot. Recommend to read it carefully, or if you're not got used to work with matrices, you probably will have to read it more times, but finally you can figure out how to do. If you don't know how to do this operation, there are sites which can do this for you ( this for instance).Īll related questions get very good answers in the Multiple Transformations in One! section of the Transformation Matrix Guide.

rainmeter flipclock rainmeter flipclock

Most important thing to keep in mind, is that the order of multiplication does matter this time (unlike in case of multiplication of numbers, where the order doesn't matter). This procedure is a completely basic procedure in matrices operations, but obviously it's not obvious for all. Then you have to multiply those matrices together, according to the corresponding rules. To apply two TransformationMatrix options to the same meter, you have to create both options as if each of them would be applied without the other. (i.e., I know how to scale it, and I know how to skew it, but I could not figure out how to do both at the same time). SilverAzide wrote: ↑ March 21st, 2023, 8:53 pm














Rainmeter flipclock