Letters WEBGL letterbox bug

Hello,
With WEBGL and type, I have sometimes a bug > a black background appear in the letterbox (the «M» in my print screen).

Try textMode(SHAPE)

See https://processing.org/reference/textMode_.html

1 Like

Thank you but I’m working with P5 and I don’t find «textMode»

1 Like

WEBGL on p5.js is still under development (if I understand correctly) so, for example, this is perhaps not implemented. An “easy” fix is to use an additive filter to blend them
https://p5js.org/reference/#/p5/blendMode

If you want “proper” rendering, perhaps you need to generate meshes from points of the contour of texts - I found this example fascinating

1 Like