0x10f<p>I made a QBasic program that simulates objects orbiting each other, with gravity being inversely proportional to the square of the distance. Screenshots with three objects orbiting 120 degrees apart:<br>1. just after the start of the simulation<br>2. a full circle<br>3. non-circular orbits have created a donut shape<br>4. rounding the position of each object to an integer on every frame has made the orbits octagonal<br>The program: <a href="https://pastebin.com/KPwZ0W3L" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">pastebin.com/KPwZ0W3L</span><span class="invisible"></span></a><br><a href="https://tech.lgbt/tags/QBasic" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>QBasic</span></a> <a href="https://tech.lgbt/tags/physics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>physics</span></a></p>