1{
2   "MaxCount": 2000,
3   "Drawable": {
4      "Type": "SkCircleDrawable",
5      "Radius": 1
6   },
7   "Code": [
8      "void effectSpawn(inout Effect effect) {",
9      "  effect.rate = 1000;",
10      "}",
11      "",
12      "void spawn(inout Particle p) {",
13      "  p.lifetime = mix(1, 3, rand(p.seed));",
14      "  float a = radians(mix(250, 290, rand(p.seed)));",
15      "  float s = mix(10, 30, rand(p.seed));",
16      "  p.vel.x = cos(a) * s;",
17      "  p.vel.y = sin(a) * s;",
18      "  p.pos += text(rand(p.seed)).xy;",
19      "}",
20      "",
21      "void update(inout Particle p) {",
22      "  float4 startColor = float4(1, 0.196, 0.078, 1);",
23      "  float4 endColor   = float4(1, 0.784, 0.078, 1);",
24      "  p.color = mix(startColor, endColor, p.age);",
25      "}",
26      ""
27   ],
28   "Bindings": [
29      {
30         "Type": "SkTextBinding",
31         "Name": "text",
32         "Text": "SKIA",
33         "FontSize": 96
34      }
35   ]
36}