1
2
3
4

Signature

function xEllipse(e, xRadius, yRadius, radiusInc,
                  totalTime, startAngle, stopAngle)

Parameters

Define your own values to pass to xEllipse(). The same arguments are passed to each of the demo elements. The 'Reset' button repositions the demo elements in the center of the page.

X Radius

Y Radius

Radius Change

Duration (ms)

Start Angle (deg)

Stop Angle (deg)

   

Demos

Each function call is in a for loop which calls xEllipse() for each demo element. a1 is a convenience variable I used. It is the start angle of each element (ele1=0, ele2=90, ele3=180, ele4=270).

Start 1

xEllipse(ele[i], 200, 100,  0, 10000,        a1, 2880 + a1);

Start 2

xEllipse(ele[i], 100, 200,  0, 10000, 2880 + a1,        a1);

Start 3

xEllipse(ele[i], 200, 100,  0,  5000,         0,      -360);

Start 4

xEllipse(ele[i], 100, 200,  0,  5000,      -360,         0);

Start 5

xEllipse(ele[i], 400, 300, -1,  5000,         0,       720);

Start 6

xEllipse(ele[i], 300, 400, -1,  5000,        a1,  720 + a1);

Start 7

xEllipse(ele[i],   2,   2,  1, 10000,   i * 360,         0);

Start 8

xEllipse(ele[i],   2,   2,  1, 10000,  720 + a1,        a1);