-
Notifications
You must be signed in to change notification settings - Fork 37
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
Enable a PVector interfacea as in Processing Python Mode #125
Comments
Trying my hand on a wrapper here: |
Look how nice PVector tests! https://github.com/jdf/processing.py/blob/master/testing/resources/test_pvector.py Another useful reference: https://github.com/jdf/processing.py/blob/master/runtime/src/jycessing/core.py |
Hi @berinhard, as in Transcrypt we won't get the operator overloading, what do you think of a very thin helper layer for p5.Vector using the PVector names? Something like this:
|
This set of aliases is extremely valid IMHO! Give it a try @villares and I hope it'll work =) |
@villares don't know if this can help you, but here's how we're setting attrs to isolate python functions such as |
Fixed by #137 |
This issue was created after #114 and the object is to have a
PVector
implementation as described by Processing's docs.A possible approach is to add a
PVector
method to thepyp5js/pyp5js.py
file to work a proxy for thep5.Vector
implementation. Something similar to:The text was updated successfully, but these errors were encountered: