Home | History | Annotate | Download | only in particles
      1 {
      2    "MaxCount": 4096,
      3    "Duration": 1,
      4    "Rate": 400,
      5    "Life": {
      6       "Input": {
      7          "Source": "Age",
      8          "TileMode": "Repeat",
      9          "Left": 0,
     10          "Right": 1
     11       },
     12       "XValues": [],
     13       "Segments": [
     14          {
     15             "Type": "Constant",
     16             "Ranged": true,
     17             "Bidirectional": false,
     18             "A0": 1,
     19             "A1": 3
     20          }
     21       ]
     22    },
     23    "Drawable": {
     24       "Type": "SkCircleDrawable",
     25       "Radius": 2
     26    },
     27    "Spawn": [
     28       {
     29          "Type": "SkPositionOnPathAffector",
     30          "Enabled": true,
     31          "Input": {
     32             "Source": "Random",
     33             "TileMode": "Clamp",
     34             "Left": 0,
     35             "Right": 1
     36          },
     37          "SetHeading": true,
     38          "Path": "h50"
     39       },
     40       {
     41          "Type": "SkLinearVelocityAffector",
     42          "Enabled": true,
     43          "Force": false,
     44          "Frame": "World",
     45          "Angle": {
     46             "Input": {
     47                "Source": "Age",
     48                "TileMode": "Repeat",
     49                "Left": 0,
     50                "Right": 1
     51             },
     52             "XValues": [],
     53             "Segments": [
     54                {
     55                   "Type": "Constant",
     56                   "Ranged": true,
     57                   "Bidirectional": false,
     58                   "A0": -10,
     59                   "A1": 10
     60                }
     61             ]
     62          },
     63          "Strength": {
     64             "Input": {
     65                "Source": "Age",
     66                "TileMode": "Repeat",
     67                "Left": 0,
     68                "Right": 1
     69             },
     70             "XValues": [],
     71             "Segments": [
     72                {
     73                   "Type": "Constant",
     74                   "Ranged": true,
     75                   "Bidirectional": false,
     76                   "A0": 50,
     77                   "A1": 60
     78                }
     79             ]
     80          }
     81       }
     82    ],
     83    "Update": [
     84       {
     85          "Type": "SkLinearVelocityAffector",
     86          "Enabled": true,
     87          "Force": true,
     88          "Frame": "World",
     89          "Angle": {
     90             "Input": {
     91                "Source": "Age",
     92                "TileMode": "Repeat",
     93                "Left": 0,
     94                "Right": 1
     95             },
     96             "XValues": [],
     97             "Segments": [
     98                {
     99                   "Type": "Constant",
    100                   "Ranged": false,
    101                   "Bidirectional": false,
    102                   "A0": 90
    103                }
    104             ]
    105          },
    106          "Strength": {
    107             "Input": {
    108                "Source": "Age",
    109                "TileMode": "Repeat",
    110                "Left": 0,
    111                "Right": 1
    112             },
    113             "XValues": [],
    114             "Segments": [
    115                {
    116                   "Type": "Cubic",
    117                   "Ranged": false,
    118                   "Bidirectional": true,
    119                   "A0": 180,
    120                   "B0": -90,
    121                   "C0": -120,
    122                   "D0": -200
    123                }
    124             ]
    125          }
    126       },
    127       {
    128          "Type": "SkSizeAffector",
    129          "Enabled": true,
    130          "Curve": {
    131             "Input": {
    132                "Source": "Age",
    133                "TileMode": "Repeat",
    134                "Left": 0,
    135                "Right": 1
    136             },
    137             "XValues": [],
    138             "Segments": [
    139                {
    140                   "Type": "Linear",
    141                   "Ranged": false,
    142                   "Bidirectional": false,
    143                   "A0": 3,
    144                   "D0": 1.5
    145                }
    146             ]
    147          }
    148       },
    149       {
    150          "Type": "SkColorAffector",
    151          "Enabled": true,
    152          "Curve": {
    153             "Input": {
    154                "Source": "Age",
    155                "TileMode": "Repeat",
    156                "Left": 0,
    157                "Right": 1
    158             },
    159             "XValues": [],
    160             "Segments": [
    161                {
    162                   "Type": "Linear",
    163                   "Ranged": true,
    164                   "A0": [ 0.0999616, 0.140218, 0.784314, 1 ],
    165                   "D0": [ 0.523837, 0.886396, 0.980392, 1 ],
    166                   "A1": [ 0.378665, 0.121107, 0.705882, 1 ],
    167                   "D1": [ 0.934257, 0.229599, 0.955882, 1 ]
    168                }
    169             ]
    170          }
    171       }
    172    ]
    173 }