Strange aliasing on diagonal lines

Hello,

Try:

strokeWeight(2) // In setup()

background(255) // Start of draw()

References:
https://processing.org/reference/draw_.html
https://processing.org/reference/background_.html

Tutorial:
https://processing.org/tutorials/overview

It should become clear after reading through the above.

Try this with and without background(255) at the start of draw:

I do not have a High-DPI display to test this:
https://processing.org/reference/pixelDensity_.html

:)

1 Like