{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A petri culture grown in the Anisota Lab's Petri studio and saved to the owner's collection. A culture is stored as its recipe rather than its pixels: a 'seed', the dish dimensions, and the ordered list of 'drops' (each an ingredient inoculated at a normalised point and at a given iteration). Because the Gray-Scott reaction-diffusion simulation is deterministic, replaying that recipe rebuilds the exact field. 'iterations' is how far the culture has grown; 'lastTickAt' lets a reopened culture advance proportionally to real time elapsed. A small PNG thumbnail is kept for display.",
      "key": "any",
      "record": {
        "properties": {
          "branch": {
            "description": "Form tunable 'branching' (dense blob → open dendrites → veins), scaled 0..1000",
            "type": "integer"
          },
          "createdAt": {
            "description": "When the culture was saved",
            "format": "datetime",
            "type": "string"
          },
          "drops": {
            "description": "Ordered inoculations: each an ingredient placed at a normalised point at a given iteration",
            "items": {
              "properties": {
                "atIteration": {
                  "description": "Iteration count at which this drop was placed",
                  "type": "integer"
                },
                "ingredient": {
                  "description": "Ingredient id (bacillus, mold, yeast, pigment, agar, antibiotic)",
                  "maxLength": 40,
                  "type": "string"
                },
                "r": {
                  "description": "Optional inoculation radius in grid cells (per-drop size variation). Absent means the default radius.",
                  "type": "integer"
                },
                "tint": {
                  "description": "Optional custom colony hue from the colour picker, scaled to 0..1000. Absent means the dropper's default colour.",
                  "type": "integer"
                },
                "x": {
                  "description": "Normalised x position scaled to 0..1000",
                  "type": "integer"
                },
                "y": {
                  "description": "Normalised y position scaled to 0..1000",
                  "type": "integer"
                }
              },
              "required": [
                "ingredient",
                "x",
                "y",
                "atIteration"
              ],
              "type": "object"
            },
            "maxLength": 512,
            "type": "array"
          },
          "height": {
            "description": "Dish grid height in cells",
            "type": "integer"
          },
          "image": {
            "description": "A PNG data URL thumbnail of the culture",
            "maxLength": 120000,
            "type": "string"
          },
          "iterations": {
            "description": "How many simulation iterations the culture has grown",
            "type": "integer"
          },
          "lastTickAt": {
            "description": "When the culture last advanced, used to grow it forward on reopen",
            "format": "datetime",
            "type": "string"
          },
          "name": {
            "description": "Display name for the culture",
            "maxGraphemes": 100,
            "maxLength": 800,
            "type": "string"
          },
          "palette": {
            "description": "Colour palette id (agar, rose, amber, marine)",
            "maxLength": 40,
            "type": "string"
          },
          "seed": {
            "description": "PRNG seed the simulation was initialised with",
            "type": "integer"
          },
          "thickness": {
            "description": "Form tunable 'thickness' (fine veins → fat rivulets), scaled 0..1000",
            "type": "integer"
          },
          "wander": {
            "description": "Form tunable 'wander' (straight → meandering branches), scaled 0..1000",
            "type": "integer"
          },
          "width": {
            "description": "Dish grid width in cells",
            "type": "integer"
          }
        },
        "required": [
          "name",
          "seed",
          "width",
          "height",
          "drops",
          "iterations",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "net.anisota.lab.petri",
  "lexicon": 1
}
