Current website documentation states that I should submit an issue here to let people know that one is working on a particular subject matter or issue so that we do not duplicate each other's efforts.
This would be my first formal contribution to P5. I am interested in taking advantage of P5's benefits in developing a project which I would know how to do with Processing.org 1.4 to 2.x. There are some things that are unique with P5 that I must learn in order to proceed, e.g. DOM, integrating third party libraries, and prototypes. For my own purposes, I need to understand certain features which are not currently explained (to the best of my searching). I believe the problems I am having would be helpful to others.
I am making a simple sketch that illustrates more of the use of DOM controls; updating text on the page, using values on checkboxes. The sketch also will illustrate the use of Gibber, specifically with respect to starting gibber, stopping gibber, and controlling gibber so that it does not force a browser to restart to turn audio back on, not starting it when it's already running, etc..
I suspect that much of this would be very mundane for those of you who are skilled and knowledgeable programmers, but, I think it's important for non-programmers who might have learned how to program via Processing and who don't have much experience with Java.
The sketch itself is very simulation of the trajectory of a frisbee in two dimensions based on the work of Canadian Professor Vance Morrison.
I expect this project to take approximately thee weeks.
The beginings of the sketch is up at my rootbsd hosted server at http://jq4q.x.rootbsd.net/frisbeesim-P5/ . I plan to refactor the code so that it more simply calls the simulate function and runs faster; that is part of another Example / Transitioning issue I intend to create soon. I might include an example of using DOM to change background that's on the page below the sketch without redrawing the background in the P5 js element.
As I mentioned, this would be my first contribution so forgive me if I'm starting off on a ... abnormal direction. I hope to improve the way I may contribute to processing through the process of contributing and will look for ways contributors collaborate on perfecting their example sketches for people without a lot of programming experience.
Respectfully,
Stephen
untls.net
The current code is not good enough for an example template; I can create a class that performs the same thing much faster in processing javascript and the same should be done through a prototype here. It has a terrible implementation of translation ... I need to draw elements at canvas orgin and translate and scale things more consistently with existing documentation. I do intend to submit something that's an improvement over documentation, consistent with the qualities of good instructional code. This code started out just to see what was feasible for me to do.
This proposed example sketch concerning the simulated flight of a frisbee also demonstrates how P5 DOM allows us to update text and interactive controls presented to the user without having to redraw the sketch background area.
Please do not let cause you to hesitate in developing examples for integrating with Gibber and other (probably common) ways people might want to use DOM controls. And please, if you do see any posts of mine seeking help regarding specific issues along the way on the Processing.org forums in the P5 programming questions section, chime in.