Why does not the method () function exist in p5.js? It is simple to implement. p5.js will be expanded with more functions as it has processing in java mode? Where can I find out about the development status of p5.js?
ex:
function method (codeToExecute){
var tmpFunc = new Function(codeToExecute);
tmpFunc();
}
I don’t really understand what this function is doing. Can’t you just call codeToExecute directly? In any case, this function could really be shortened to one line of code:
new Function(codeToExecute)();
Again, I don’t really see what this is doing, but my point is that you wouldn’t really need this to be a P5.js function, since you can already do it in one line anyway.
If you present a short code sample in Java that shows what you would like to do and what you would like to port to js, you will probly get more suggestions.