Draw a sine curve between any two points!
in
Programming Questions
•
1 year ago
Hey everybody,
i'm pretty new to processing. I try to draw a sine curve between two points. That would be the first step. Afterwards i would like to dynamically change frequency and amplitude of the sine curve.
Lets say, i have two Points P(200, 100) and Q(300, 600). How can i connect these two point with a sine curve??
The position of the point will not stay constant. They will change with user interaction.
If anyone can help me, would be really nice. I'm getting crazy with this. I hope the attached image illustrates what im trying to achieve.
i'm pretty new to processing. I try to draw a sine curve between two points. That would be the first step. Afterwards i would like to dynamically change frequency and amplitude of the sine curve.
Lets say, i have two Points P(200, 100) and Q(300, 600). How can i connect these two point with a sine curve??
The position of the point will not stay constant. They will change with user interaction.
If anyone can help me, would be really nice. I'm getting crazy with this. I hope the attached image illustrates what im trying to achieve.
1