draws straight lines from boundaries of canvas