1{ 2 "MaxCount": 800, 3 "Drawable": { 4 "Type": "SkCircleDrawable", 5 "Radius": 2 6 }, 7 "Code": [ 8 "void effectSpawn(inout Effect effect) {", 9 " effect.lifetime = 1;", 10 " effect.rate = 100;", 11 "}", 12 "", 13 "void spawn(inout Particle p) {", 14 " float4 pos_and_normal = my_path(rand(p.seed));", 15 " p.pos = pos_and_normal.xy;", 16 " p.vel = pos_and_normal.zw * -5;", 17 "", 18 " p.lifetime = 2;", 19 "}", 20 "", 21 "void update(inout Particle p) {", 22 "}", 23 "" 24 ], 25 "Bindings": [ 26 { 27 "Type": "SkPathBinding", 28 "Name": "my_path", 29 "PathPath": "", 30 "PathName": "star" 31 } 32 ] 33}