addLine(0,0,100,100); // constants: a=7; b=6; // phase angle: phi=0.2*Math.PI; // iteration step: step=Math.PI/256; // width of plot (amplitude in X): w=100; // height of plot (amplitude in Y): h=100; // array of x,y coordinates on the curve: v=[]; // loop: for (t=0.0; t