giulioforesto / planets

A 2D plotted planets movement simulator
0 stars 0 forks source link

Draw grid only on displayed coordinates #21

Open giulioforesto opened 9 years ago

giulioforesto commented 9 years ago

For the moment, the code starts drawing the grid from the origin to the limits of the screen, in all directions. This means that if the origin is not at the center of the screen, in at least one direction lines are drawn uselessly. The problem gets worse as the origin gets far from the screen