Diagonal line loop

The lines will look nicer if you move the background(255,255,255); line from setup() into draw().

The reason it looks jaggy is that the lines are drawn over and over again, and the subtle antialias gray colors that should be there to make it look nice quickly become black, destroying the antialiasing effect.

4 Likes