Lottie-Windows/LottieViewer
Simeon 94fc21cd83
Support gradient opacity stops. (#182)
* Support gradient opacity stops.

In LottieData we now model opacity and color stops on gradients as a single list of GradientStop which can either be an OpacityGradientStop or a ColorGradientStop.

During translation, we convert that list to a list of ColorGradientStop where the opacity information is carried in the Alpha channel.

During canonicalization, work around an issue with CompositionColorGradientStopCollections which require that a stop object does not appear twice in the same collection.

When translating gradients, use the maximum opacity in cases where we can't support opacity animation. Previously we used the initial opacity, which caused things to disappear if they started out with 0 opacity. Maximum opacity will allow the items to show up, which makes it easier to debug.

Updated the temporary cert used when building LottieViewer - the old one had expired.

* Update the samples cert - it had expired.
2019-11-12 17:08:55 -08:00
..
AnimatedVisuals Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
Assets Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
Properties Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
App.xaml Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
App.xaml.cs updated splashcreen with a border instead of a grid to avoid reparenting issue. (#57) 2019-02-06 22:06:47 -08:00
FeedbackLottie.xaml Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
FeedbackLottie.xaml.cs Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
LottieViewer.csproj Support gradient opacity stops. (#182) 2019-11-12 17:08:55 -08:00
LottieViewer_TemporaryKey.pfx Support gradient opacity stops. (#182) 2019-11-12 17:08:55 -08:00
MainPage.xaml Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
MainPage.xaml.cs Added two subclasses of LoadedImageSurface, one for LoadFromStream, one for LoadFromUri. Plus other code improvements per code review feedback. 2019-05-16 13:36:30 -07:00
Package.appxmanifest Enable Arm64 builds (#179) 2019-11-01 11:42:52 -07:00
README.md README Updates (#65) 2019-02-19 11:27:27 -08:00
Scrubber.xaml Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
Scrubber.xaml.cs Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
Stage.xaml Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
Stage.xaml.cs Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00

README.md

Lottie Viewer

The Lottie Viewer project generates a Store application for previewing Lottie / Bodymovin JSON files. The tool is intended to help developers and designers validate the visual correctness of their Lottie animations rendered using Lottie-Windows.

Usage

Drag a Lottie file onto the Lottie Viewer window to see it rendered, or use the "Pick a Lottie file" icon in the top left to open local files or URIs. If the orange warning icon lights up, click on it to see any issues that Lottie-Windows encountered.

Generating code with Lottie Viewer

Lottie Viewer allows a Lottie file to be saved as generated code. For maximum control and many extra features for generating code use the LottieGen command line tool.

LottieViewer_Capture

English badge