g.drawRoundedRectangle interest?
#7869
-
|
I've been thinking about the UI of the bangle.js recently, and thought it would be nice if the graphics library had a Edit: Implementation would be similar to what's in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
This isn't documented very clearly, but fillRect can already do rounded texts: https://www.espruino.com/Reference#l_Graphics_fillRect I believe we use it internally for the menus and things, so if you see people implementing their own versions maybe you could give them a prod or do a PR I don't think we have drawRect though |
Beta Was this translation helpful? Give feedback.
-
|
Huh, I don't believe that works for me... I tried popping this in the terminal: |
Beta Was this translation helpful? Give feedback.
This isn't documented very clearly, but fillRect can already do rounded texts: https://www.espruino.com/Reference#l_Graphics_fillRect
I believe we use it internally for the menus and things, so if you see people implementing their own versions maybe you could give them a prod or do a PR
I don't think we have drawRect though