I’m missuderstanding the combination of translate(), rotate(), pushmatrix() and popmatrix();
In the example, I’m trying to rotate the sinus functions after translating the matrix to its origin,
but obviosuly there’s many sine functions that end up being drawn outside the canvas, and i don’t understand why! any clue?
I fiddled with your code a bit.
Take a look at what I did to help understand what I did and code is doing.
Good tools for understanding and debugging code are:
println()
simple visuals like point() to see what is going on.
Thanks glv!
your example helped me realize that after doing translate i had to start drawing my sine function at 0,0, as the translate is already placing the coordinates origin where you tell it…
My intention with this is to go on improving this weird thing i have running 24h a day until the lockdown lasts (situation is kinda hard here in spain):