Im looking to access external functions from with a processing pjs script intergrated in the HTML5 canvas element.
Iv tried traditional methods of accessing the function however i seem unable to from within the datasrc script.
Can someone point me in the right direction??
Your pjs script will have access to any globals, so you shouldn’t have any trouble doing this. We’ve written about this multiple times, for example:
http://processingjs.org/reference/articles/jsQuickStart#accessingjsobjectsfrompjs