Advertisement
Guest User

Orbital Clock

a guest
Nov 28th, 2023
1,524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. [Rainmeter]
  2. Update = 1000
  3. AccurateText = 1
  4. SkinWidth = #Horizontal_Res#
  5. SkinHeight = #Vertical_Res#
  6.  
  7. [Metadata]
  8. Name = Planet Clock Example
  9. Author = Rexia
  10. Information =
  11. Version = 1.0
  12. License = Creative Commons Attribution - Non - Commercial - Share Alike 3.0
  13.  
  14. [Variables]
  15. Orbit_Radius = 200
  16. Vertical_Res = 1080
  17. Horizontal_Res = 1920
  18.  
  19. -----------------------------------------------------------------------------
  20.  
  21. [Hour Measure]
  22. Measure = Time
  23. Format = %#H
  24.  
  25. [Minute Measure]
  26. Measure = Time
  27. Format = %#M
  28.  
  29. [TimeInMinutesCalc]
  30. Measure = Calc
  31. Formula = ([Hour Measure] * 60) + [Minute Measure]
  32. DynamicVariables = 1
  33.  
  34. [AngularRotationCalc]
  35. Measure = Calc
  36. Formula = (([TimeInMinutesCalc] / 1440) * 360)
  37. DynamicVariables = 1
  38.  
  39. [PlanetXPosCalc]
  40. Measure = Calc
  41. Formula = (#Orbit_Radius# * Sin([AngularRotationCalc]))
  42. DynamicVariables = 1
  43.  
  44. [PlanetYPosCalc]
  45. Measure = Calc
  46. Formula = (#Orbit_Radius# * Cos([AngularRotationCalc]))
  47. DynamicVariables = 1
  48.  
  49. -----------------------------------------------------------------------------
  50.  
  51. [Sun]
  52. Meter = Shape
  53. Shape = Rectangle -100, -100, 200, 200, 100 | Fill Color 255, 255, 128 | StrokeWidth 0
  54. X = (#Horizontal_Res# / 2)
  55. Y = (#Vertical_Res# / 2)
  56.  
  57. [Planet]
  58. Meter = Shape
  59. Shape = Rectangle -25, -25, 50, 50, 25 | Fill Color 0, 128, 255 | StrokeWidth 0
  60. X = (#Horizontal_Res# / 2) + [PlanetXPosCalc]
  61. Y = (#Vertical_Res# / 2) + [PlanetYPosCalc]
  62.  
  63. DynamicVariables = 1
  64.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement