kamicane / art

vector drawing for buttons, icons, widgets and all that stuff
http://github.com/kamicane/art
MIT License
143 stars 142 forks source link

Tweening gradients? #3

Open oskarkrawczyk opened 14 years ago

oskarkrawczyk commented 14 years ago

More of a question this time:

Any plans on tweening gradients? I understand tweening 2 to 5 gradients would be pretty much impossible but how about just a 2=>2 color tween?

sebmarkbage commented 14 years ago

The objective should be to allow all features to be animated. Although, maybe some more obscure via plugins (like path -> path morphing).

It's actually not more difficult to do a 2->5 color gradient tween. We can just insert stops on the same offsets on both gradients. If the stops are not on the same offsets this may result in two 7 stop gradients. Then animate the colors on each stop.

oskarkrawczyk commented 14 years ago

Nice, this would be one amazing feature of ART. A total winner.