Blue border/margin around rectangle

I’m facing a weird problem. When I draw a rectangle as part of my HUD, it is drawn with a blue border even though I don’t actually ever specify this color in my code anywhere. Do you have any idea why this is and how to get rid of it? This is the relevant part of the code:

// Add title
void addTitle() {
  rect(0, 0, width, 35);
  textSize(100); // hack to make font render more smoothly
  text("My title", 3232, 100);

This is what it looks like:

Hi @tea_tree

I might be guessing but do you have at any point of your code definition of line stroke with that color?

Best regards

1 Like

I agree.

Try noStroke(); before the rect command

Also, to improve the font in 3D:


I also recommend to use a normal font size and get rid of scale(0.2);

1 Like