> Anyone see something that might be wrong?
> value3=sine(idx*180);
> if value3>0 then begin
> plot1(centerprice+radius*squareroot(value3)); //top half
> plot2(centerprice-radius*squareroot(value3)); //bottom half
> end;
Why are you taking the sqrt of the sine? The Y offset of a
circle is radius * sin(theta).
Taking the sqrt of the sin should make for squarish circles,
since sin(45deg) = 0.7071 and sqrt(sin(45deg)) is 0.8409. See
attached for an example.
Gary
Attachment:
sqrtsin.gif
Description: GIF image
|