Re: Animation curve is always linear though specified to be S-like
Re: Animation curve is always linear though specified to be S-like
- Subject: Re: Animation curve is always linear though specified to be S-like
- From: "Oleg Krupnov" <email@hidden>
- Date: Wed, 17 Sep 2008 08:36:36 +0300
It has just dawned at me that I should use [self currentValue] instead
of [self currentProgress] as the argument for the function that alters
the position during animation, i.e.
NSLog( [NSString stringWithFormat:@"%f", [self currentValue]]);
The "progress" indeed grows linearly, at regular time intervals, and
the "value" is calculated S-like
Thanks anyway!
On Wed, Sep 17, 2008 at 8:31 AM, Graham Cox <email@hidden> wrote:
>
> On 17 Sep 2008, at 3:04 pm, Graham Cox wrote:
>
>> Does it? The likelihood is that the animation is performed using a regular
>> interval, but the position is modified according to the S-curve function.
>> With only 7 steps of animation, it's probable that you are just not noticing
>> the easing in and out, which doesn't deviate that much from the linear.
>
>
> Actually, looking at NSAnimation this is probably wrong, since this is how
> you get notified of where you should be, it should include the effects of
> the curve. Do try a longer time though and see if it makes the curve more
> obvious, 7 samples may be too few to see it.
>
> Graham
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden