Sorry if this has been discussed elsewhere, or isn't appropriate for this forum.
I'm just curious what your thoughts are about P5 as webGL continues to develop. I've been playing around with the three.js library a bit, and there are already a large number of impressive/sophisticated demos for it. There are large players that are supporting the development of WebGL, and my personal experience has been that it's pretty nice coding in something like sublime text and debugging with developer tools. I've always missed not having breakpoints and the ability to inspect variables in the processing IDE; at some point I moved to eclipse, but I find eclipse feels too much like an industrial strength solution for light-weight scripting exercises.
Many of you on the forum have been in the field longer and/or more intensely than I have, so I'm curious what your thoughts are.
I'd like to make some interactive sketches to do some form-finding exercises. I've got a first, basic sketch working in v1.5, with iGeo. It's been a year or so since I last worked with P5 and that library. Has there been any update or work-around that lets you interact with the iGeo windows more directly? Right now I'm driving it from a couple of ControlP5 windows, but it's kind of a clumsy solution.
If iGeo still don't support this, is there a better combination of libraries or tool worth looking at?
More generally, I'm curious if there any general best practices or design patterns for this type of work have emerged.
I now have code that can tell if text has been selected. I'd like to be able to apply a highlighter effect, with different colours.
My cursory poking through the GUI4P classes seems to suggest this isn't something that's supported. Right now I'm putting together a work-around that involves transparency and drawing boxes on top of the text field.
[I've just started looking at different libraries that support text entry -- Gui4P seems the most promising at the moment, but if interfascia or ControlP5 is better for this application, I can switch.]
I'd like to be able to input text and then keep track of user selection-highlighting (done either through user mouse-dragging or shift+cursor key).
Poking through G4P, I've found that the .getFocusObject() method returns the relevant information from a text field, but I'm having datatype troubles:
println(txfML1.getFocusObject());
works like a charm, but if I try something like:
String info = txfML1.getFocusObject();
It returns a "cannot convert from GComponent to String" error.
What do I need to do to here?
[I'm just working with the standard G4P textfield demo code, from quark's website: