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

drawString on 2D canvas? #9

Closed
pabloav opened this issue Jul 12, 2012 · 2 comments
Closed

drawString on 2D canvas? #9

pabloav opened this issue Jul 12, 2012 · 2 comments
Assignees
Labels

Comments

@pabloav
Copy link

pabloav commented Jul 12, 2012

I can't seem to get drawString to draw onto a 2D canvas. Maybe it's a Z issue or scaling issue?

This file is based on the bouncingballs code: https://github.com/pabloav/pi3d/blob/82c727cd0d8ab5211440b6cb547db673319923e9/pablo2.py

I added the coffee texture as a rectangle, but the next never seems to appear.

@ghost ghost assigned paddywwoof Dec 19, 2012
@rec
Copy link
Collaborator

rec commented Dec 19, 2012

Not sure exactly where we are with this?

@paddywwoof
Copy link
Collaborator

we're doing this sufficiently differently in the ES2.0 version that I think I can close this. Certainly String.draw() using Font and Ttffont seems to work fine, with or without any other objects. However it's not really 2D. That would involve having a mechanism to bypass the Shape and Camera matrix stuff. That might be worth doing at some stage but for the moment you will have to move things along and rotate them in front of the camera. Maybe look at this for the next issue of the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants