Lottie-android: Support Gradient fills

Created on 2 Feb 2017  ·  13Comments  ·  Source: airbnb/lottie-android

Most helpful comment

@subtleGradient @dong108 @podrivo @wingjay @rkim-homma @martinbonnin @bearprada

Please give linear gradients a try with 2.0.0-beta1 :)

I'll leave this open until I finish radial gradients.

All 13 comments

👍 This is on our roadmap :)

do you have a document to describe the roadmap for this awesome project? @gpeal

@bearprada I'll add one to the readme :) Many feature requests are tracked in issues though and I'll try to tag them to releases when possible.

Some precomp support and polystar support as well as a few other things are coming soon!

Really hoping to have this feature as soon as possible! (:

@subtleGradient @dong108 @podrivo @wingjay @rkim-homma @martinbonnin @bearprada

Please give linear gradients a try with 2.0.0-beta1 :)

I'll leave this open until I finish radial gradients.

@gpeal Radial gradient didn't work for me.

Here's a ZIP with .aep and .json: Archive.zip

What I got:
radial

Expected:
screen shot 2017-03-24 at 3 25 51 pm

@podrivo this will be fixed in beta3 which I'm about to push

@gpeal Gradient is working in beta3, but it's being applied related to the canvas and not to the element. So in my example, it feels like a mask.

Can you attach the aep file?

On Sun, Mar 26, 2017, 11:06 AM Pedro Ivo Hudson notifications@github.com
wrote:

@gpeal https://github.com/gpeal Gradient is working in beta3, but it's
being applied related to the canvas and not to the element. So in my
example, it feels like a mask.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/airbnb/lottie-android/issues/47#issuecomment-289293733,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABP0YTDz5XCeXGDTux54gnuNKwsJkkJoks5rpoz4gaJpZM4L1qoJ
.

@gpeal It's the same as above.
Here it is: Archive.zip

@podrivo I'm not sure I understand what the issue is. This is what it looks like for me now:
image
Is there a difference between this and the expected one?

@gpeal I'm scaling the gradient applied element.

In AE, everything is scaled, including the gradient, but in Lottie, just the form is scaled and not the gradient, so the element behaves as a mask.

In AE:
screen shot 2017-03-27 at 4 48 19 pm

In Lottie:
screen shot 2017-03-27 at 5 06 24 pm

Ah, I see. Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

addyi picture addyi  ·  3Comments

dpmaycry picture dpmaycry  ·  3Comments

mmakmw picture mmakmw  ·  4Comments

subtleGradient picture subtleGradient  ·  3Comments

mateusgrb picture mateusgrb  ·  5Comments