1

I am playing with the deferent animations using the alpha C4 framework.

I am trying to shape grow from the midel of the canvas till it covers it completely....Is there any animation that can create that zoom effect?

M.Ermecheo
  • 87
  • 1
  • 8

1 Answers1

0

Yup, you can change and animate a C4Shape like this:

shape.animationDuration = 1.0f; //1 second animation duration
[shape rect:(-1,-1,769,1025)];

Note, the above is for a rectangle that will be 1px larger than the screen of an iPad on all sides. To make an ellipse you'd have to figure out the size of the frame that will encompass an ellipse that covers the whole screen.

C4 - Travis
  • 4,502
  • 4
  • 31
  • 56
  • Haha, vertical integration at its best: You wrote the framework, and then get the rep for questions about it. – CodaFi Apr 30 '12 at 23:48
  • Hopefully I'm not the only one for long! We're really trying to push the development. – C4 - Travis May 01 '12 at 00:55
  • To be honest, the prospect of working on something like C4 is quite interesting to me. Send an email to devteam.codafi(at)gmail.com if you need any help. – CodaFi May 01 '12 at 01:26