[prev in list] [next in list] [prev in thread] [next in thread]
List: kwin
Subject: Re: physics-based animator
From: Sebastian Kuegler <sebas () kde ! org>
Date: 2008-03-17 11:30:07
Message-ID: 200803171230.11555.sebas () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Monday 17 March 2008 12:16:02 Louai Al-Khanji wrote:
> I thought about this last week as well. The idea I had was a class
> where you can give the start and target values and duration. You could
> then specify a curve type (linear, exponential, etc.) and specify some
> parameters that affect the curve shape.
>
> Just an idea, I might even do something with it.
Good idea. :)
For KWin effects, the easiest way to integrate such a thing would be to have a
method "valueAtTime()" like QTimeLine has it. Then we can probably port most
effects rather easily. Right now, all animation progress is based on a single
double, which is then used to calculate position, size and so on.
I'd love to see such a class that can then be extended with all kinds of curve
types, it can probably also be used for plasma, although with a signal-based
interface.
--
sebas
http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
["signature.asc" (application/pgp-signature)]
_______________________________________________
Kwin mailing list
Kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic