Question: Is there any way to make the rectangle motionless when running the animation?

Hello,

I make an simple animation as the figure illustrated, which the key codes were learned from Mr. Robert Israel a few days ago in one thread. Now I want to let the rectangle motionless when the circle rotating in the rectangle for a special use. Is there any way to achieve it? 

The codes are:

with(plots): with(plottools):

a := plot([[-2, -2], [2, -2], [2, 2], [-2, 2], [-2, -2]]);

b := plot([-1+.2*sin(t), .2*cos(t), t = 0 .. 2*Pi]);

pl := display(a, b);

animate(rotate, [pl, t], t = 0 .. 2*Pi);

Best regards!
 

Please Wait...