This is a Processing sketch inspired by the Coding Train’s Coding Challenge #1 on creating a starfield simulation, similar to Star Trek’s warp speed or the mid-90s Windows screensaver.


  • Clicking and dragging will add new stars where the mouse is.
  • Pressing c will reset the star count to 10.
  • Pressing UP or DOWN arrow will increase / decrease the speed.

Source code: (View on Github)