I want to move a circle along a sine curve. How do I do this?
Pleassseee!
I want to move a circle along a sine curve. How do I do this?
Pleassseee!
I love your passion
Maybe you can start with drawing a circle?
Thanks, I do have a circle!
I’m stuck with how to set up the x and y(x and y coordinates of the circle) to animate the circle, do you have any ideas on this?
Sorry I have no idea - do you want to share the code to draw a circle?
Hello,
You have to start somewhere…
I encourage you to review the resources available here:
The Processing website has references, examples, tutorials, etc.
https://processing.org/
The Processing PDE has lots to offer!
An exploration of the tabs will reveal what is available; libraries, tools, examples and more.
The Coding Train
https://www.youtube.com/channel/UCvjgXvBlbQiydffZU7m1_aw
https://thecodingtrain.com/
Happy Coding
Processing Tutorials - Happy Coding
The source code can give insight if you are adventurous:
GitHub - processing/processing: Source code for the Processing Core and Development Environment (PDE)
Some of the Processing helper functions are here:
processing/core/src/processing/core/PApplet.java at master · processing/processing · GitHub
The Processing Foundation
https://processingfoundation.org/
Check out the tabs.
In the education tab, there is a reference to the Coding Train.
And the Internet. :)
There may be something of interest in there for you.
Sine waves? There is a tutorial on trigonometry. And coordinate system and shapes.
:)