Hi, I’m doing this thing, trying to make every ellipse appear and disappear with the same function but in a different time, like if every ellipse is in a different moment of the sine function.
I can write the function as I want, but I don’t know how to make the difference with every ellipse.
The key lies in setting the fill color for every circle individually. That means these two lines of code need to be executed for every ellipse individually:
As you can see, (x+y)/10 is added to b in the sin() function. It’s as if a circle with a high x and y position is further ahead in time than one with a low x and y position. This creates this diagonal gradient. You could also add just x or y, or any other mathematical combination of the two.
Thank you, WeinSim and TfGuy44,
the solution more concrete I was looking for is TfGuy44’s, it’s perfect, I didn’t know that could be done. Now understand more things, even about the sine function.