{
  "format": "field",
  "version": 1,
  "meta": {
    "name": "Liesegang Precipitation Rings",
    "author": "Infinite",
    "description": "Ostwald supersaturation Liesegang chemical precipitation bands in silica gel with warm ochre, iron-oxide, and mineral-cobalt concentric diffusion rings.",
    "domain": "pixel"
  },
  "device": {
    "code": "# Liesegang Precipitation Rings (Field Pixel)\nparam float ring_spacing = 24.0 [10.0, 42.0];\nparam float warp = 0.35 [0.05, 0.85];\nparam float cobalt_mix = 0.48 [0.0, 1.0];\n\np = vec2((uv.x - 0.5) * aspect, uv.y - 0.5);\nr = length(p);\nang = atan2(p.y, p.x);\n\npert = warp * 0.08 * (sin(ang * 5.0 + t * 0.4) + 0.5 * cos(ang * 9.0 - r * 12.0));\nlr = log(max(r + pert, 0.02));\nband = 0.5 + 0.5 * cos(lr * ring_spacing - t * 0.9);\nprecip = smoothstep(0.35, 0.82, band);\n\ncGel = vec3(0.094, 0.078, 0.071);\ncOxide = vec3(0.557, 0.294, 0.165);\ncOchre = vec3(0.831, 0.608, 0.329);\ncCobalt = vec3(0.180, 0.357, 0.420);\n\nmineral = mix(cOxide, cOchre, smoothstep(0.25, 0.85, band));\nmineral = mix(mineral, cCobalt, cobalt_mix * 0.45 * (0.5 + 0.5 * sin(r * 16.0 + ang * 2.0)));\ncol = clamp(mix(cGel, mineral, precip) * (1.05 - 0.35 * r), 0.0, 1.0);\n",
    "params": {
      "ring_spacing": 24.0,
      "warp": 0.35,
      "cobalt_mix": 0.48
    }
  }
}