Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Rainmeter]
- Update = 1000
- AccurateText = 1
- SkinWidth = #Horizontal_Res#
- SkinHeight = #Vertical_Res#
- [Metadata]
- Name = Planet Clock Example
- Author = Rexia
- Information =
- Version = 1.0
- License = Creative Commons Attribution - Non - Commercial - Share Alike 3.0
- [Variables]
- Orbit_Radius = 200
- Vertical_Res = 1080
- Horizontal_Res = 1920
- -----------------------------------------------------------------------------
- [Hour Measure]
- Measure = Time
- Format = %#H
- [Minute Measure]
- Measure = Time
- Format = %#M
- [TimeInMinutesCalc]
- Measure = Calc
- Formula = ([Hour Measure] * 60) + [Minute Measure]
- DynamicVariables = 1
- [AngularRotationCalc]
- Measure = Calc
- Formula = (([TimeInMinutesCalc] / 1440) * 360)
- DynamicVariables = 1
- [PlanetXPosCalc]
- Measure = Calc
- Formula = (#Orbit_Radius# * Sin([AngularRotationCalc]))
- DynamicVariables = 1
- [PlanetYPosCalc]
- Measure = Calc
- Formula = (#Orbit_Radius# * Cos([AngularRotationCalc]))
- DynamicVariables = 1
- -----------------------------------------------------------------------------
- [Sun]
- Meter = Shape
- Shape = Rectangle -100, -100, 200, 200, 100 | Fill Color 255, 255, 128 | StrokeWidth 0
- X = (#Horizontal_Res# / 2)
- Y = (#Vertical_Res# / 2)
- [Planet]
- Meter = Shape
- Shape = Rectangle -25, -25, 50, 50, 25 | Fill Color 0, 128, 255 | StrokeWidth 0
- X = (#Horizontal_Res# / 2) + [PlanetXPosCalc]
- Y = (#Vertical_Res# / 2) + [PlanetYPosCalc]
- DynamicVariables = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement