skia2/resources/particles/snowfall.json
Brian Osman 3d76d1bf46 Particles: Removed emitters, added more full-featured position affectors
Bug: skia:
Change-Id: Ie6485a11bb57fecef470d727dcf3b4fe5dff0b90
Reviewed-on: https://skia-review.googlesource.com/c/195582
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2019-02-28 21:16:02 +00:00

82 lines
1.8 KiB
JSON

{
"MaxCount": 4096,
"Duration": 1,
"Rate": 30,
"Life": {
"XValues": [],
"Segments": [
{
"Type": "Constant",
"Ranged": false,
"Bidirectional": false,
"A0": 10
}
]
},
"Drawable": {
"Type": "SkCircleDrawable",
"Radius": 1
},
"Spawn": [
{
"Type": "SkLinearVelocityAffector",
"Enabled": true,
"Force": false,
"Frame": "World",
"Angle": {
"XValues": [],
"Segments": [
{
"Type": "Constant",
"Ranged": true,
"Bidirectional": false,
"A0": 170,
"A1": 190
}
]
},
"Strength": {
"XValues": [],
"Segments": [
{
"Type": "Constant",
"Ranged": true,
"Bidirectional": false,
"A0": 10,
"A1": 30
}
]
}
},
{
"Type": "SkPositionOnPathAffector",
"Enabled": true,
"SetHeading": false,
"Path": "h500"
}
],
"Update": [
{
"Type": "SkSizeAffector",
"Enabled": true,
"Curve": {
"XValues": [],
"Segments": [
{
"Type": "Cubic",
"Ranged": true,
"Bidirectional": false,
"A0": 10,
"B0": 10,
"C0": 10,
"D0": 0,
"A1": 10,
"B1": 0,
"C1": 0,
"D1": 0
}
]
}
}
]
}