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

Processing.js compatibility for hitbox checking in HText #8

Closed
snarks opened this issue May 1, 2013 · 1 comment
Closed

Processing.js compatibility for hitbox checking in HText #8

snarks opened this issue May 1, 2013 · 1 comment

Comments

@snarks
Copy link

snarks commented May 1, 2013

HText.containsRel() uses PFont.Glyph which isn't compatible with Processing.js. Find a way to accurately check the hitbox that's compatible with js mode.

Suggestion: Use a PGraphics buffer that updates whenever the text is changed. Check if the the pixel in buffer at the given coordinates have an alpha of more than 0.


This issue is currently suspended as we're currently focusing on interfacing with the LeapMotion and Kinect devices

@ghost ghost assigned snarks May 1, 2013
@snarks
Copy link
Author

snarks commented Jun 5, 2013

I'll be merging this issue with #19 now.

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

No branches or pull requests

1 participant