News for hackers. Stuff that matters.
Re:Introducing Lottie: Airbnb's tool for adding animations t... by spbaar on Wednesday February 01, 2017 @03:32PM (#13544812)
Are the frames drawn to a bitmap first or straight to a canvas? Can a single animation object display different parts of itself in different stages of that animation, or would a duplicate animation object be required?
Re:Introducing Lottie: Airbnb's tool for adding animations t... by gpeal on Wednesday February 01, 2017 @04:16PM (#13545296)
If there are no masks or mattes, the animation is drawn directly to the canvas and no bitmap allocations are necessary.

If there is a matte, an 8 bit bitmap will be created and if there is a mask, a 32 bit bitmap will be created and drawn to.

An animation can only be at one stage at a time but you can easily create multiple animations. If you want to have several copies of the same animation, there is a composition caching option that will prevent you from having to deserialize and parse the composition again.