Here’s a demo. It draws a white rectangle, then draws red lines at all four corners. You’ll see that some of the white rectangle shows inside the red lines. It appears that the red does cover some of the white, but definitely not all the white.
-- demo
-- Use this function to perform your initial setup
function setup()
end
-- This function gets called once every frame
function draw()
background(40, 40, 50)
translate(40,40)
strokeWidth(5)
noSmooth()
stroke(255)
rect(0,0,400,300)
stroke(255,0,0)
line(0,0,100,0)
line(300,0,400,0)
line(400,0,400,100)
line(400,200,400,300)
line(400,300,300,300)
line(100,300,0,300)
line(0,300,0,200)
line(0,100,0,0)
end
If you set strokeWidth large, you can see that the white is drawn only inside the rectangle, not centered on the line (that’s probably good. perhaps there is a setting for that).
If you set strokeWidth to 1, I think there is still white inside the red, but at retina resolution with my old eyes, I’m not sure.
Anyway, the rectangle is clearly inside the lines. And, again … is this intended. It certainly could be.
Thanks!