On Wednesday, December 11, 2013 2:20:51 PM UTC-8, [email protected] 
wrote:
>
> Please help, my coursework deadline is tomorrow.
> I'm doing a piece on circular motion, I have a simple animation of a point 
> moving in a circle, and a static circle I want the point to move around on 
> but I want the circle to sit behind the animation so that it looks like the 
> point is moving around the circle. Probably really simple but I'm 
> struggling... 
> this is the code i have--
>
> a = animate([point2d(((5*sin(i)),(5*cos(i))),rgbcolor=hue(1), size=30)for 
> i in srange(0,2*pi,0.1)],xmin=-5,ymin=-5,xmax=5,ymax=5,figsize=[4,4])
> b = circle((0,0),5)
>
> a.show()
> b.show()
>

How about this: define the circle "b" first, then animate "b+point2d(...)" 
instead of just "point2d(...)":

b = circle((0,0),5)
a = animate([b+point2d(((5*sin(i)),(5*cos(i))),rgbcolor=hue(1), size=30)for 
i in srange(0,2*pi,0.1)],xmin=-5,ymin=-5,xmax=5,ymax=5,figsize=[4,4])
a.show()

-- 
John

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to