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

Consider offsets for bezels #12

Open
workergnome opened this issue Jul 27, 2016 · 1 comment
Open

Consider offsets for bezels #12

workergnome opened this issue Jul 27, 2016 · 1 comment

Comments

@workergnome
Copy link
Owner

Should we have some sort of offset, that allows particles to go offscreen? This would allow bezels, and would also handle larger particles that might not want to vanish when their center point hits the edge...

@gnastacast
Copy link
Contributor

My pull request for the p5 example uses an offset. Since both Y and X are 0-1 you can just do something like

float xPos = (p.pos.x-xBorder)width(1+xBorder*2);

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

No branches or pull requests

2 participants