skia2/resources/particles/snowfall.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

52 lines
972 B
JSON

{
"MaxCount": 4096,
"Rate": 30,
"Life": {
"min": 10,
"max": 10
},
"StartColor": [ 1, 0.999994, 0.99999, 1 ],
"EndColor": [ 0.99999, 0.999992, 1, 1 ],
"Size": {
"Ranged": true,
"A0": 10,
"B0": 10,
"C0": 10,
"D0": 0,
"A1": 10,
"B1": 0,
"C1": 0,
"D1": 0
},
"Velocity": {
"Angle": 1.5708,
"Spread": 0.174533,
"Strength": {
"min": 10,
"max": 30
},
"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": 61, "y": 34 },
"P2": { "x": 606, "y": 32 }
},
"Update": [
{
"Type": "SkJitterAffector",
"X": {
"min": -0.2,
"max": 0.2
}
}
]
}