That, for sure, will be amazing!Yincognito wrote: ↑September 26th, 2020, 4:43 pm No problem, it happens, we've all been there. Use whatever solution you find comfortable, and feel free to ask if you don't know anything. I have to apologize too, as I didn't include the conversion to radians in my first reply, and I should have.
I will use this thread to post an accurate representation of the solar system made in Rainmeter later on, if that's ok with you. Apart from other bits of code meant to help you with what you want, of course.
For now, I have come to this point:
Still with some bugs .. But I am trying!
Code: Select all
[Rainmeter]
Update=1
BackgroundMode=1
SkinWidth=260
SkinHeight=260
AccurateText=1
MouseOverAction=[!Commandmeasure ActionTimer "Stop 2"][!UnpauseMeasure Loop][!Commandmeasure ActionTimer "Execute 1"]
MouseLeaveAction=[!Commandmeasure ActionTimer "Stop 1"][!Commandmeasure ActionTimer "Execute 2"][!Delay 1000][!PauseMeasure Loop]
[Variables]
CenterSize=62
OrbitDistance=80
OrbitSize=18
CenterXY=50
OrbitDistanceMin=80
OrbitDistanceMax=110
[Loop]
Measure=Loop
StartValue=0
EndValue=359
Increment=1
[ActionTimer]
DynamicVariables=1
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat Act1,10,40
Act1=[!SetVariable OrbitDistance "(Clamp(#OrbitDistance#+1,#OrbitDistanceMin#,#OrbitDistanceMax#))"]
ActionList2=Repeat Act2,10,40
Act2=[!SetVariable OrbitDistance "(Clamp(#OrbitDistance#-1,#OrbitDistanceMin#,#OrbitDistanceMax#))"]
[Shapes]
DynamicVariables=1
Meter=Shape
Shape=Ellipse #OrbitDistance#,#OrbitDistance#,#OrbitSize# | Rotate [Loop],(#CenterXY#-#OrbitDistance#+#OrbitSize#),(#CenterXY#-#OrbitDistance#+#OrbitSize#) | Extend M1
Shape2=Ellipse #OrbitDistance#,#OrbitDistance#,#OrbitSize# | Rotate ([Loop]+45),(#CenterXY#-#OrbitDistance#+#OrbitSize#),(#CenterXY#-#OrbitDistance#+#OrbitSize#) | Extend M1
Shape3=Ellipse #OrbitDistance#,#OrbitDistance#,#OrbitSize# | Rotate ([Loop]+90),(#CenterXY#-#OrbitDistance#+#OrbitSize#),(#CenterXY#-#OrbitDistance#+#OrbitSize#) | Extend M1
Shape4=Ellipse #OrbitDistance#,#OrbitDistance#,#OrbitSize# | Rotate ([Loop]+135),(#CenterXY#-#OrbitDistance#+#OrbitSize#),(#CenterXY#-#OrbitDistance#+#OrbitSize#) | Extend M1
Shape5=Ellipse #OrbitDistance#,#OrbitDistance#,#OrbitSize# | Rotate ([Loop]+180),(#CenterXY#-#OrbitDistance#+#OrbitSize#),(#CenterXY#-#OrbitDistance#+#OrbitSize#) | Extend M1
Shape6=Ellipse #OrbitDistance#,#OrbitDistance#,#OrbitSize# | Rotate ([Loop]+225),(#CenterXY#-#OrbitDistance#+#OrbitSize#),(#CenterXY#-#OrbitDistance#+#OrbitSize#) | Extend M1
Shape7=Ellipse #OrbitDistance#,#OrbitDistance#,#OrbitSize# | Rotate ([Loop]+270),(#CenterXY#-#OrbitDistance#+#OrbitSize#),(#CenterXY#-#OrbitDistance#+#OrbitSize#) | Extend M1
Shape8=Ellipse #OrbitDistance#,#OrbitDistance#,#OrbitSize# | Rotate ([Loop]+315),(#CenterXY#-#OrbitDistance#+#OrbitSize#),(#CenterXY#-#OrbitDistance#+#OrbitSize#) | Extend M1
Shape9=Ellipse #CenterXY#,#CenterXY#,#CenterSize# | Extend M2
M1=StrokeWidth 0 | Fill Color 0,0,0,75
M2=StrokeWidth 0 | Fill Color 0,0,0,255
W=190
H=190
X=80
Y=80