A faster way:
Triangular wave for an SSC:
code: x=i*21;
y=asin(sin(i*$pi*2))/asin(1);
for general use:
code:
frame:
t=t+.05;
numwave=3;
point:
y=asin(sin(t*$pi*2*numwave))/asin(1);
Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Last edited by Warrior of the Light; 19th March 2005 at 12:03.
