# net.anisota.lab.petri

> Published by [anisota.net](https://lexicon.garden/identity/did:plc:lcieujcfkv4jx7gehsvok3pr)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:lcieujcfkv4jx7gehsvok3pr/net.anisota.lab.petri)
- [Documentation](https://lexicon.garden/lexicon/did:plc:lcieujcfkv4jx7gehsvok3pr/net.anisota.lab.petri/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:lcieujcfkv4jx7gehsvok3pr/net.anisota.lab.petri/examples)

## Definitions

### `net.anisota.lab.petri`

**Type**: `record`

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`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Display name for the culture |
| `seed` | `integer` | Yes | PRNG seed the simulation was initialised with |
| `drops` | `array` | Yes | Ordered inoculations: each an ingredient placed at a normalised point at a given iteration |
| `image` | `string` | No | A PNG data URL thumbnail of the culture |
| `width` | `integer` | Yes | Dish grid width in cells |
| `branch` | `integer` | No | Form tunable 'branching' (dense blob → open dendrites → veins), scaled 0..1000 |
| `height` | `integer` | Yes | Dish grid height in cells |
| `wander` | `integer` | No | Form tunable 'wander' (straight → meandering branches), scaled 0..1000 |
| `palette` | `string` | No | Colour palette id (agar, rose, amber, marine) |
| `createdAt` | `string` (datetime) | Yes | When the culture was saved |
| `thickness` | `integer` | No | Form tunable 'thickness' (fine veins → fat rivulets), scaled 0..1000 |
| `iterations` | `integer` | Yes | How many simulation iterations the culture has grown |
| `lastTickAt` | `string` (datetime) | No | When the culture last advanced, used to grow it forward on reopen |

## Raw Schema

```json
{
  "id": "net.anisota.lab.petri",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "seed",
          "width",
          "height",
          "drops",
          "iterations",
          "createdAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 800,
            "description": "Display name for the culture",
            "maxGraphemes": 100
          },
          "seed": {
            "type": "integer",
            "description": "PRNG seed the simulation was initialised with"
          },
          "drops": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "ingredient",
                "x",
                "y",
                "atIteration"
              ],
              "properties": {
                "r": {
                  "type": "integer",
                  "description": "Optional inoculation radius in grid cells (per-drop size variation). Absent means the default radius."
                },
                "x": {
                  "type": "integer",
                  "description": "Normalised x position scaled to 0..1000"
                },
                "y": {
                  "type": "integer",
                  "description": "Normalised y position scaled to 0..1000"
                },
                "tint": {
                  "type": "integer",
                  "description": "Optional custom colony hue from the colour picker, scaled to 0..1000. Absent means the dropper's default colour."
                },
                "ingredient": {
                  "type": "string",
                  "maxLength": 40,
                  "description": "Ingredient id (bacillus, mold, yeast, pigment, agar, antibiotic)"
                },
                "atIteration": {
                  "type": "integer",
                  "description": "Iteration count at which this drop was placed"
                }
              }
            },
            "maxLength": 512,
            "description": "Ordered inoculations: each an ingredient placed at a normalised point at a given iteration"
          },
          "image": {
            "type": "string",
            "maxLength": 120000,
            "description": "A PNG data URL thumbnail of the culture"
          },
          "width": {
            "type": "integer",
            "description": "Dish grid width in cells"
          },
          "branch": {
            "type": "integer",
            "description": "Form tunable 'branching' (dense blob → open dendrites → veins), scaled 0..1000"
          },
          "height": {
            "type": "integer",
            "description": "Dish grid height in cells"
          },
          "wander": {
            "type": "integer",
            "description": "Form tunable 'wander' (straight → meandering branches), scaled 0..1000"
          },
          "palette": {
            "type": "string",
            "maxLength": 40,
            "description": "Colour palette id (agar, rose, amber, marine)"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the culture was saved"
          },
          "thickness": {
            "type": "integer",
            "description": "Form tunable 'thickness' (fine veins → fat rivulets), scaled 0..1000"
          },
          "iterations": {
            "type": "integer",
            "description": "How many simulation iterations the culture has grown"
          },
          "lastTickAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the culture last advanced, used to grow it forward on reopen"
          }
        }
      },
      "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."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
