skia2/resources/particles/swirl.json
Brian Osman 5c1f8eb094 Various particle system improvements
Effects now have a duration, and can be played looped
or one-shot. Added a second list of affectors that are
applied at spawn vs. update.

Effects grab and store the SkRandom at construction,
so it no longer needs to be passed to update().

Bug: skia:
Change-Id: Ib54d60466e162e4d4b70fa64c1215fc01680d47a
Reviewed-on: https://skia-review.googlesource.com/c/191722
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2019-02-14 20:19:08 +00:00

71 lines
1.4 KiB
JSON

{
"MaxCount": 4096,
"Rate": 400,
"Life": {
"min": 1,
"max": 3
},
"StartColor": [ 0.334527, 0, 0.598039, 1 ],
"EndColor": [ 0, 1, 0.880952, 1 ],
"Size": {
"Ranged": false,
"A0": 6,
"B0": 5,
"C0": 4,
"D0": 3,
"A1": 1,
"B1": 1,
"C1": 1,
"D1": 1
},
"Velocity": {
"Angle": 4.71239,
"Spread": 0.174533,
"Strength": {
"min": 60,
"max": 50
},
"Bidirectional": false,
"Spin": {
"min": 0,
"max": 0
},
"BidirectionalSpin": false
},
"Image": "images/half-transparent-white-pixel.png",
"ImageCols": 1,
"ImageRows": 1,
"Emitter": {
"Type": "SkLineEmitter",
"P1": { "x": 200, "y": 200 },
"P2": { "x": 250, "y": 200 }
},
"Update": [
{
"Type": "SkRangedForceAffector",
"Angle": {
"Ranged": false,
"A0": 0,
"B0": 0,
"C0": 0,
"D0": 0,
"A1": 0,
"B1": 0,
"C1": 0,
"D1": 0
},
"Strength": {
"Ranged": false,
"A0": 180,
"B0": -90,
"C0": -120,
"D0": -200,
"A1": 0,
"B1": 0,
"C1": 0,
"D1": 0
},
"Bidirectional": true
}
]
}