evancz / elm-playground

Create pictures, animations, and games with Elm!
https://package.elm-lang.org/packages/evancz/elm-playground/latest/
BSD 3-Clause "New" or "Revised" License
107 stars 17 forks source link

`words` can only be centered #8

Open Janiczek opened 5 years ago

Janiczek commented 5 years ago

The fact that words are rendered as centered text makes it a bit hard to display text on the left or right side of the screen: the user has to somewhat arbitrarily add numbers to computer.screen.left until the text is all visible on the screen.

evancz commented 5 years ago

What is the scenario where you ran into this problem?

Janiczek commented 5 years ago

There was a beginner on the Elm Slack playing with a Playground example. They wanted to add some debugging info (x, y position) to their game (a circle moving using keyboard arrows, IIRC), so we suggested words. When using the words, it's centered by default (IIRC), so they wanted to move the text somewhere it wouldn't be in the way. The corners were a first thing they tried, and then they encountered this.