On Thu, 6 Aug 2009, Jason Zhou wrote:

> hi,
> 
> I'm from China.I want to produce a rotate taiji animation by shoes.But I
> found 2 problems.

I had to look that up :-).  Seems to be what I've always known as a yin
and yang symbol.  
> 
> 1st,there is no fill() method(filled an enclose area with specified color)
> in shoes.So I have

My copy of the shoes manual says there is. I can't paste from it, alas.
It is in the Shoes Styles and seems to be what you are after.  Type 
fill without the leading colon into the search facility in the manual.


> 
> to first draw black area,then draw a white semi-circle to erase part of
> black area to produce
> 
> Taiji map.Maybe someone has better method.

I think you should be able to use several shapes (white circle, black
circle, white part of circle, black part of circle) within one defined
shape.  The shape manual (shoes -m gives the manual), says you can use
arc and curve_to within a shape.

I think if you define the Taiji as nested shapes like that, it will be
easier to regard it as one thing to be rotated.  I think there need to
be 3 arcs in each part of the large circle, the outside, the convex part
and the concave part.  And the concave part is just the convex part of
the other half.
> 
> 2nd,to make rotate animation,I draw a taiji map then rotate a certain angle
> in each step.The
> 
> angle increased relate to time.Without animate,the taiji map was displalyed
> in correct
> 
> rotated angle.But when I add animate method,the taiji does not rotate as I
> expected.Sometimes

I'm not sure, but I think you can get rid of cnt, and just have
ang = 30 * i

Maybe someone who has done some animation can say.
> 
> it rotate clockwise,sometimes it rotate anti-clockwise.I don't know why.
> 
> ruby code in attachment.
> 
> Jason Zhou
> 
        Hugh

Reply via email to