Now the problem is that curveVertex does its interpolation and makes nice curves but I cannot get the points on those curves other than the ones I already have. What I want is the cursor to show values on all the points on the graph rather than the 10 points which I have on the array, much like the graphs on google or yahoo finance. I am a noob when it comes to processing so any help with this will be greatly appreciated.
I need to interpolate between two points. Now I know that processing does it for you with the curve command. Can anyone please tell me what kind of interpolation is it.Also, is it possible to follow the curve numerically. What I mean is, if I have two points x,y and I give the command curve(x,y) processing will draw a curve for me. Now is there any way to get the points (x1,y1), (x2,y2),(x3,y3)....that lie between the two points so that I can follow the curve. If not, can anybody tell me a good interpolation function that can be used for this. Any help in this regard will be greatly appreciated
So I have a ON-OFF button that draws a circle. The trouble I am encountering is that the ON OFF states are random depending on how long I press the button. I guess this is due to the draw() function which also loops my button function in time with framerate. What I want is for the button to turn on when pressed once and turn off when pressed again irrespective of how long the button is pressed. Here is the code.
else if (circle4.pressed()) { println("button 4 is pressed");
I have a few small buttons on my sketch. I wish to have a text label appear on the screen when the user scrolls over the button. Kind of similar to how facebook shows the profile picture and basic info in a box when you move the mouse over a person's name on your newsfeed. Any help on this will be greatly welcome. Would I need to use javaScript?