Hello everyone, I have a big problem with curve function in Processing. Recently, I want to draw a dynamic picture with hills, clouds and even a sun. But I don't know how to draw a continuous curve, only one way I can come up with is to create two arrays. In my mind, the height of hills is random and hills will move from right to left. After I tried several ways, the hills always interrupt. Can anyone give me some examples? Or tell me another way to create hills. Thanks everyone reads my question. Here is my code: