There are a few different ways that you can paint basketball lines on your driveway. One way is to use a stencil and spray paint. This method is quick and easy, but the lines may not be as straight as you would like them to be. Another way is to use masking tape to create straight lines, and then paint over the top of the tape with your desired color. This method takes a bit more time and effort, but it will give you much straighter lines than using a stencil alone.