Skip to content

Commit 96d2e33

Browse files
Black as space!
Line 48 changes background to black to simulate space as realistically as possible.
1 parent 50b54d1 commit 96d2e33

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • multi-body-orbital-mechanics

multi-body-orbital-mechanics/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# --- Physics constants ---
66
G = 6.67430e-11 # gravitational constant
7-
dt = 60 * 60 * 6 # time step (6 hours)
7+
dt = 60 * 60 * 24 # time step (24 hours)
88
frame_count = 0 # to animate glow pulsing
99

1010
# --- Planet data ---
@@ -45,6 +45,7 @@
4545

4646
# --- Setup figure ---
4747
fig, ax = plt.subplots()
48+
fig.patch.set_facecolor('black')
4849
ax.set_facecolor("black")
4950
ax.set_aspect('equal', adjustable='box')
5051

0 commit comments

Comments
 (0)