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

125 lines
2.9 KiB
JSON

{
"MaxCount": 4096,
"Duration": 1,
"Rate": 400,
"Life": {
"XValues": [],
"Segments": [
{
"Type": "Constant",
"Ranged": true,
"Bidirectional": false,
"A0": 1,
"A1": 3
}
]
},
"Drawable": {
"Type": "SkCircleDrawable",
"Radius": 2
},
"Spawn": [
{
"Type": "SkPositionOnPathAffector",
"Enabled": true,
"SetHeading": true,
"Path": "h50"
},
{
"Type": "SkLinearVelocityAffector",
"Enabled": true,
"Force": false,
"Frame": "World",
"Angle": {
"XValues": [],
"Segments": [
{
"Type": "Constant",
"Ranged": true,
"Bidirectional": false,
"A0": -10,
"A1": 10
}
]
},
"Strength": {
"XValues": [],
"Segments": [
{
"Type": "Constant",
"Ranged": true,
"Bidirectional": false,
"A0": 50,
"A1": 60
}
]
}
}
],
"Update": [
{
"Type": "SkLinearVelocityAffector",
"Enabled": true,
"Force": true,
"Frame": "World",
"Angle": {
"XValues": [],
"Segments": [
{
"Type": "Constant",
"Ranged": false,
"Bidirectional": false,
"A0": 90
}
]
},
"Strength": {
"XValues": [],
"Segments": [
{
"Type": "Cubic",
"Ranged": false,
"Bidirectional": true,
"A0": 180,
"B0": -90,
"C0": -120,
"D0": -200
}
]
}
},
{
"Type": "SkSizeAffector",
"Enabled": true,
"Curve": {
"XValues": [],
"Segments": [
{
"Type": "Linear",
"Ranged": false,
"Bidirectional": false,
"A0": 3,
"D0": 1.5
}
]
}
},
{
"Type": "SkColorAffector",
"Enabled": true,
"Curve": {
"XValues": [],
"Segments": [
{
"Type": "Linear",
"Ranged": true,
"A0": [ 0.0999616, 0.140218, 0.784314, 1 ],
"D0": [ 0.523837, 0.886396, 0.980392, 1 ],
"A1": [ 0.378665, 0.121107, 0.705882, 1 ],
"D1": [ 0.934257, 0.229599, 0.955882, 1 ]
}
]
}
}
]
}