by asdasf · 13y ago · 0 comments
On a side note, any plans to integrate sounds? The use case I have that got me considering elm was simple web based games like solitaire or connect 4. Sound effects would be really nice there.
The problem is that other things, like shapes, are specified in pixels. So if text size isn't, it makes it impossible to position any shapes relative to text.
Think about a title in a game; you don't want it to go off the screen and you don't want it to wrap either.
em = 16
title = Text.height (2*em) (toText "Title")
pic = image 400 (4*em) "yogi.jpg"
I can also imagine the definition of em depending on the user's settings or fonts. In any case, we'll definitely open this up for discussion on the lists again if people start running into problems :)