Question: How to adjust the program so that the animation works

restart;
Fig:=proc(t)
local a,b,c,A,B,C,Oo,P,NorA,NorB,NorC,lieu,Lieu,dr,tx:
uses plots, geometry;
a := 11:b := 7:
c := sqrt(a^2 - b^2):

point(A, a*cos(t), b*sin(t)):
point(B, a*cos(t + 2/3*Pi), b*sin(t + 2/3*Pi)):
point(C, a*cos(t + 4/3*Pi), b*sin(t + 4/3*Pi)):
point(Oo,0,0):
lieu:=a^2*x^2+b^2*y^2-c^4/4=0:
Lieu := implicitplot(lieu, x = -a .. a, y = -b .. b, color = green):

line(NorA, y-coordinates(A)[2] =((a^2*coordinates(A)[2])/(b^2*coordinates(A)[1]))*(x-coordinates(A)[1]),[x, y]):
line(NorB, y-coordinates(B)[2] =((a^2*coordinates(B)[2])/(b^2*coordinates(B)[1]))*(x-coordinates(B)[1]), [x, y]):
line(NorC, y-coordinates(C)[2] =((a^2*coordinates(C)[2])/(b^2*coordinates(C)[1]))*(x-coordinates(C)[1]),[x, y]):
intersection(P,NorA,NorB):

ellipse(p, x^2/a^2 + y^2/b^2 - 1, [x, y]);

tx := textplot([[coordinates(A1)[], "A"],[coordinates(A2)[], "B"], [coordinates(C)[], "C"], [coordinates(Oo)[], "O"],#[coordinates(P)[], "P"]], font = [times, bold, 16], align = [above, left]):
dr := draw([p(color = blue),NorA(color=red,NorB(color=red),NorC(color=red),p(color=blue),
Oo(color = black, symbol = solidcircle, symbolsize = 8), P(color = black, symbol = solidcircle, symbolsize = 8)]):
display(dr,tx,Lieu,scaling=constrained, axes=none,title = "Les triangles inscrits dans une ellipse ont leur centre de gravité en son centre . Lieu du point de concours des perpendicalaires issues des sommets", titlefont = [HELVETICA, 14]);
end:

Error, `:=` unexpected
plots:-animate(Fig, [t], t=0.1..2*Pi, frames=150);
 

Please Wait...