skia2/resources/skottie/skottie_sample_multiframe.json
Florin Malita 62c6bd910a [skottie] Multi-frame image support
Extend the image asset provider API to support animated/multi-frame images.

Add a GM based on SkAnimCodecPlayer + animated public domain GIF
(source: https://giphy.com/explore/public-domain).

Bug: skia:
Change-Id: Iaa596e01a7626ca6574db1ebc90632f5a9a02bdc
Reviewed-on: https://skia-review.googlesource.com/159162
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
2018-10-03 19:02:35 +00:00

53 lines
1.1 KiB
JSON

{
"v":"4.6.9",
"fr":60,
"ip":0,
"op":200,
"w":800,
"h":600,
"ddd":0,
"assets": [
{
"id": "image_0",
"p": "image_0.png",
"u": "images/",
"w": 600,
"h": 400
}
],
"layers":[
{
"ddd":0,
"ind":1,
"ty":2,
"refId": "image_0",
"nm":"Custom Path 1",
"ao": 0,
"ip": 0,
"op": 200,
"st": 0,
"sr": 1,
"bm": 0,
"ks": {
"o": { "a":0, "k":100 },
"r": { "a":1, "k": [
{ "t": 0, "s": 0, "e": 5 },
{ "t": 50, "s": 5, "e": -5 },
{ "t": 150, "s": -5, "e": 0 },
{ "t": 200 }
]},
"p": { "a":0, "k":[ 400, 300, 0 ] },
"a": { "a":0, "k":[ 300, 200, 0 ] },
"s": { "a":1, "k":[
{ "t": 0, "s": [ 100, 100, 100 ], "e": [ 150, 150, 100 ] },
{ "t": 100, "s": [ 150, 150, 100 ], "e": [ 100, 100, 100 ] },
{ "t": 200 }
]}
}
}
]
}