Jump to content

Text on top of matter.js body


returnKitten
 Share

Recommended Posts

I've been looking through the examples, but there's nothing that does what I'm looking for.

I have circular matter bodies with the texture of a ball. How do I put text on top of these balls while keeping the body round?

I've looked into containers, but it only seems possible to have them in rectangular shape.

I'm thinking whether generating my own sprites with the text already embedded there would be the best option. It's not that straightforward as the text/numbers/symbols I'll be presenting there will be fed by an API, so I can't generate the sprites beforehand.

Edited by returnKitten
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...