The problem is, I want to make funny things with triangular wave, but I'm not getting it right.
I tried tons of different triangular wave fourier series, but this one was working quite good: http://www.rfcafe.com/references/electr ... series.htm
I used A=0.32, and for omega_0*t I used pi*3.5*s
With just 3-5 terms, I got quite nice triangular wave. The problem was, I want the triangular wave to start from [0,0.8] and to go to [0.8,0]. So it would look like a ladder, descending from middle top, to center right. Got the picture?
Using that formula, I get normal level triangular wave, not one descending and looking like stairs. I know I have to implement it in both X and Y -coordinates, but my brain is stuck on how to do it.
And now comes the best part, after I get it to look like stairs, I want to rotate it around the origo

It's quite simple to rotate the starting point around the origo, but I also need to rotate the triangular wave at the same rate so that it keeps in correct angle.
I think I can handle the rotation, when I get the ladder look correct, but I'm having trouble with that... anyone has any idea?
Actually I worked around the problem by using small lines, each one at 90 degree angle to the previous. It was quite easy to make that ladder and also rotate it around the origo.
The problem was, I would need 21 lines to make the figure which I want to draw, and the current version supports 15, so I'm a little bit short of waveforms.
So if there's any workaround to rise that 15 to 21, then I could solve the problem easier with existing formulas. If not, I have to try to make that ladder somehow
