skia2/resources/particles/default.json
Brian Osman d5c57fe289 Add local vs world flag for particle velocity
Adjust reference frame for affector to be consistent (so angles are
counted clockwise from "up" in both local and world modes).

Bug: skia:
Change-Id: I643e1484bc0a58d1f1c0cfe35ac2ab37dc2ea409
Reviewed-on: https://skia-review.googlesource.com/c/194189
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2019-02-22 17:45:25 +00:00

97 lines
2.2 KiB
JSON

{
"MaxCount": 4096,
"Duration": 1,
"Rate": 1000,
"Life": {
"XValues": [],
"Segments": [
{
"Constant": true,
"Ranged": true,
"Bidirectional": false,
"A0": 1,
"B0": 0,
"C0": 0,
"D0": 0,
"A1": 3,
"B1": 0,
"C1": 0,
"D1": 0
}
]
},
"Drawable": {
"Type": "SkCircleDrawable",
"Radius": 1
},
"Emitter": {
"Type": "SkTextEmitter",
"Text": "SKIA",
"FontSize": 96
},
"Spawn": [
{
"Type": "SkLinearVelocityAffector",
"Force": false,
"Local": false,
"Angle": {
"XValues": [],
"Segments": [
{
"Constant": true,
"Ranged": true,
"Bidirectional": false,
"A0": -30,
"B0": 0,
"C0": 0,
"D0": 0,
"A1": 30,
"B1": 0,
"C1": 0,
"D1": 0
}
]
},
"Strength": {
"XValues": [],
"Segments": [
{
"Constant": true,
"Ranged": true,
"Bidirectional": false,
"A0": 10,
"B0": 0,
"C0": 0,
"D0": 0,
"A1": 30,
"B1": 0,
"C1": 0,
"D1": 0
}
]
}
}
],
"Update": [
{
"Type": "SkColorAffector",
"Curve": {
"XValues": [],
"Segments": [
{
"Constant": false,
"Ranged": false,
"A0": [ 1, 0.196078, 0.0784314, 1 ],
"B0": [ 1, 0.392157, 0.0784314, 1 ],
"C0": [ 1, 0.588235, 0.0784314, 1 ],
"D0": [ 1, 0.784314, 0.0784314, 1 ],
"A1": [ 0, 0, 0, 0 ],
"B1": [ 0, 0, 0, 0 ],
"C1": [ 0, 0, 0, 0 ],
"D1": [ 0, 0, 0, 0 ]
}
]
}
}
]
}