Heading = 0; CenterX = 0; CenterY = 0; Size = 5; Phases = 72; X = Size; Y = 0; WBPMove(); float Ball = 2; for (Heading = 0; Heading <= Phases * 2 * PI;Heading = Heading + 0.02){ MovCirc = Heading / Phases; R = Size; R1 = sin(Heading * Ball); R2 = sin(Heading + MovCirc); R = R + R1 * R2 * Size; X = cos(Heading) * R + CenterX; Y = CenterY + sin(Heading) * R; WBPMove(); }

Heading = 0;

ReplyDeleteCenterX = 0;

CenterY = 0;

Size = 5;

Phases = 72;

X = Size;

Y = 0;

WBPMove();

float Ball = 2;

for (Heading = 0; Heading <= Phases * 2 * PI;Heading = Heading + 0.02){

MovCirc = Heading / Phases;

R = Size;

R1 = sin(Heading * Ball);

R2 = sin(Heading + MovCirc);

R = R + R1 * R2 * Size;

X = cos(Heading) * R + CenterX;

Y = CenterY + sin(Heading) * R;

WBPMove();

}