Line width looks thinner with p5 vs canvas api

I remade an old project that used p5 to do the drawing, and verified that my canvas api drawing functions are no different than p5’s after reading the source. What I’m noticing are that the line widths look slightly thinner with p5 (slightly better too i imo). I looked at both the context and canvas objects in both, and there are no settings that are different, both have ctx.lineWidth = 1.

I’m wondering, is there anything else p5 does under the hood, perhaps it shifts the coordinates by half a pixel to anti-alias differently, or there is some setting I don’t know about? It’s mysterious to me.

Thanks

Hi @glenderr,

did you or do you use smooth function ?

Cheers
— mnse

Hello,

Related topic:

:)

2 Likes