Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-line text not vertically centered with textAlign #17

Open
quinton-ashley opened this issue Nov 29, 2023 · 0 comments
Open

multi-line text not vertically centered with textAlign #17

quinton-ashley opened this issue Nov 29, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@quinton-ashley
Copy link
Collaborator

quinton-ashley commented Nov 29, 2023

function setup() {
  new Canvas(400, 400);
  displayMode("maxed", "pixelated");
}

function draw() {
  background(200);

  textAlign(CENTER, CENTER);
  textSize(100);
  text('hello\nbye', 200, 200);
}
@quinton-ashley quinton-ashley changed the title Using textAlign to vertically center text doesn't work for multi-line text [bug] multi-line text not vertically centered with textAlign Dec 1, 2023
@quinton-ashley quinton-ashley added enhancement New feature or request help wanted Extra attention is needed labels Jan 3, 2024
@quinton-ashley quinton-ashley changed the title [bug] multi-line text not vertically centered with textAlign multi-line text not vertically centered with textAlign Jan 21, 2024
@quinton-ashley quinton-ashley added bug Something isn't working and removed enhancement New feature or request labels Jan 21, 2024
@quinton-ashley quinton-ashley moved this to Todo in q5 Dec 9, 2024
@quinton-ashley quinton-ashley added this to q5 Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

1 participant