Daniel Howe

Results 150 comments of Daniel Howe

The relevant lines are here in core.js (line 269), where 'f' is the first argument above, and 'o' the 2nd. Not positive, but I think the issue is due to...

I'm thinking about the various use-cases. But first off, is it expected that an empty preload() function will hang the sketch (with setup() never being called)?

Types of things we might want to register as preload functions (as best I can tell only the first case currently works): - a function attached to p5 (e.g., p5.sound...

Do we have an example that works with a different object than p5.prototype? Something like: ``` js p5.prototype.registerPreloadMethod('myPreloadFunction', myLibraryObject); ```

yes, I also looked for p5.tone, but didn't find any source with a registerPreload() function...

I think we also need to update the docs here: https://github.com/processing/p5.js/wiki/Libraries

So, I think the problem was that the function I was testing returned a string... and as best I can tell (due to the immutability of js strings) there's no...

Any thoughts @lmccart @polyrhythmatic ? Here's a test, in case anyone wants to give it a try (the same code works correctly when result is either an array, or an...

I wonder if there is a workaround (I haven't come up with one as yet) -- its not ideal to require libraries to potentially change their APIs just to integrate...

One other thing I notice is that external code will fail in preload() when a callback (for example, an error-handler) is passed as an argument -- which is different than...