I want to know how this is expressed. 02

What have you tried? You MUST try to write the code yourself.

You will need a setup() and draw() function. In setup(), you must call size(). Start with that!

Can you draw an ellipse? How about three? Their position needs to change over time. Can you map the amount of time that has ellapsed (millis()) to a position using math and conditional statements?

https://processing.org/examples/sinecosine.html

Please read through this guide:

It’s really hard to help with general “how do I do this” type questions. Please try to break your problem down into smaller steps and take those steps on one at a time.

I’m closing this thread, as it’s pretty much a duplicate of this one: