https://www.geecoders.com/2021/05/draw-line-in-java.html