{
  "name": "Coin Flip",
  "dimension": "text",
  "slot": "action_bar",
  "width": 256,
  "height": 128,
  "textBaseline": 128,
  "placement": {
    "x": 0,
    "y": 0
  },
  "shapes": [],
  "texts": [],
  "heads": [],
  "images": [],
  "bars": [],
  "triggers": [],
  "effect": {
    "glsl": "vec4 effect(Fx f) {\n    float ph = fract(f.t * 0.5 - f.o.x * 0.012);\n    float cs = cos(ph < 0.35 ? ph / 0.35 * 2.0 * PI : 0.0);\n    float sx = max(abs(cs), 0.06);\n    float cx = f.w * 0.5;\n    float dx = (f.p.x - cx) / sx;\n    float sdx = (f.p.x - 1.0 - cx) / sx;\n    vec2 src = vec2(cx + (cs < 0.0 ? -dx : dx), f.p.y);\n    vec2 ssrc = vec2(cx + (cs < 0.0 ? -sdx : sdx), f.p.y - 1.0);\n    vec3 gold = mix(vec3(1.0, 0.94, 0.56), vec3(0.86, 0.55, 0.12), f.q.y / f.size.y);\n    gold *= cs < 0.0 ? 0.62 : 1.0;\n    gold = min(gold + (1.0 - sx) * 0.4, 1.0);\n    return inkShadow(gold, G(src), G(ssrc));\n}\n",
    "pad": [
      0,
      0,
      1,
      1
    ],
    "prompt": "",
    "preset": "coinflip",
    "sample": "+50 coins"
  }
}