Looking to add a gradient slider to a sketch. I found this awesome slider, but don't have a good way to add it to a processing sketch. It is an applet, but I can't find a way to use 'getContentPane().add(slider,c);' (it was in the demo code) in processing. I believe that is a swing function...
Can anyone tell me an elegant way to get to that function call or another way to add it into a sketch? I've looked at the demo source, but haven't yet found a way to implement it.
I've started coding a gradient slider with straight processing just in case. Has anyone else done anything like this before?
I'm trying to use the controlP5 TextField, as well as the keyPressed function supplied by processing. Without the keyPressed function controlP5 works like a charm. However, if I include the keyPressed method, controlP5 never receives the key press.
I'm guessing that the keyPressed function intercepts the key press, and controlP5 never gets it.
Is there a way to go around this? Can I forward the key press to controlP5 after keyPressed?
I'm in the process of writing a sketch using a database. I'm trying to link picking ids to database row ids. I've got several tables I'm pulling data from and would like to have a separate picker for each table for different visualizations.
Does anyone have an idea on how to distinguish which picker an object is associated with?
For example, I draw 1000 circles and 1000 squares. The circles have a picker and the squares have a picker. I can get the ids from each picker if I mouse over an object, but how do I distinguish if it's a circle or square that the mouse is over?
Or will the library work as long as the buffer colors are not the same? Or as long as the objects aren't overlapping?
Getting this error: "You must first call texture() before using u and v coordinates with vertex()".
I'm calling it in the correct order as seen in example after example. I've looked at the old post
here. I've verified all the suggestions in the old forum as correct.
Does anyone have any new suggestions for fixing this issue? Is it a PImage problem? This is driving me crazy...
Thanks,
Max
edit:
sorry i guess i should have done this first... I'm using OPENGL. The image is fairly large - 646KB and takes a second to load. I'm not getting the "can't find image" error either.