We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey
I was wondering (and couldnt find a clear answer) what happens when I 'draw' a line like this, line("text", 10, 20.5). Seeing that there is no such thing as half a pixel how does processing determine the y location for drawing the line?
Cheers,
Answers
no such method...
you can't draw half a pixel but you can fake half a black pixel, say, by making the whole pixel grey. this is called anti-aliasing and it's used to make things look smoother than is possible by colouring whole pixels.
draw a line, save the image and examine it in a graphic editor and you'll see. (however, i don't think all render modes support this)
https://www.quora.com/Why-is-anti-aliasing-required-in-games-Why-cant-the-graphics-be-developed-with-proper-edges
To play with what happens when you don't do this -- which forces pixels to be either present or absent with no antialiasing -- experiment with
noSmooth()
.