amazing stuff, a bit difficult to follow for click click click type of users.

i found


"public boolean setX(int id,
                    double x)

    Set X position of an object.

        id - The ID of the object.
        x - The x coordinate."

i don't see

getX(int id):          Get the x position of an object. i can find getBx and getBy.

but how do i use the code
x1=getX(id[0]); y1=getY(id[0]);
for(i=1;i<18;i++){// move all the coils (x,y) together
inside the rest of the html codes?

is there any examples to follow the syntax ? ;D