543d2e2f2e
Added a simpler circle drawable, moved drawing code out so that frame calculation is handled by the drawable. Fixed all the sample effects, including some size adjustments to better create the intended effect. Bug: skia: Change-Id: I60af9cd6262ff98352ca8ceaf6768aef9c7e164c Reviewed-on: https://skia-review.googlesource.com/c/193029 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
64 lines
1.4 KiB
JSON
64 lines
1.4 KiB
JSON
{
|
|
"MaxCount": 4096,
|
|
"Duration": 1,
|
|
"Rate": 90,
|
|
"Life": {
|
|
"XValues": [],
|
|
"Segments": [
|
|
{
|
|
"Constant": true,
|
|
"Ranged": false,
|
|
"Bidirectional": false,
|
|
"A0": 30,
|
|
"B0": 0,
|
|
"C0": 0,
|
|
"D0": 0,
|
|
"A1": 0,
|
|
"B1": 0,
|
|
"C1": 0,
|
|
"D1": 0
|
|
}
|
|
]
|
|
},
|
|
"StartColor": [ 1, 0.999994, 0.99999, 1 ],
|
|
"EndColor": [ 0.99999, 0.999992, 1, 1 ],
|
|
"Drawable": {
|
|
"Type": "SkCircleDrawable",
|
|
"Radius": 2
|
|
},
|
|
"Emitter": {
|
|
"Type": "SkCircleEmitter",
|
|
"Center": { "x": 380.8, "y": 273.92 },
|
|
"Radius": 43
|
|
},
|
|
"Spawn": [],
|
|
"Update": [
|
|
{
|
|
"Type": "SkPointForceAffector",
|
|
"Point": { "x": 375, "y": 273 },
|
|
"Constant": -10,
|
|
"InvSquare": 0
|
|
},
|
|
{
|
|
"Type": "SkSizeAffector",
|
|
"Curve": {
|
|
"XValues": [],
|
|
"Segments": [
|
|
{
|
|
"Constant": false,
|
|
"Ranged": false,
|
|
"Bidirectional": false,
|
|
"A0": 0.25,
|
|
"B0": 1,
|
|
"C0": 2,
|
|
"D0": 3,
|
|
"A1": 0,
|
|
"B1": 0,
|
|
"C1": 0,
|
|
"D1": 0
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |