Slightly different is possibly a slight understatement ![]()
I’m new to this game; started with Processing 4.2. I’ve always wondered why I had to adjust my vertical alignment of text inside a rectangle.
I haven’t written serious code yet but I basicall need to fix all prototype code now for using Processing 4.3.
Simple example
void setup()
{
size(300, 100);
}
void draw()
{
rectMode(CORNER);
fill(0xFF00FFFF);
int x = 50;
int y = 50;
int w = 200;
int h = 30;
// outer rectangle
stroke(0xFF00FFFF);
rect(x, y, w, h, 10);
// inner rectangle
stroke(0xFF000000);
rect(x + 5, y + 5, w - 10, h - 10, 5);
textSize(20);
textAlign(CENTER, CENTER);
fill(0xFF000000);
text("Hello", x + w / 2, y + h / 2);
}
4.2

4.3

Note
I can live with it, it’s more a warning to others that encounter the same issue.