Magical gene / lines and strokes
Stained Glass
Black leading in straight lines across the horse, and a quarter-strength wash of colour in each pane between them. Which colours is the allele's business rather than the horse's - this is the one locus where the palette is inherited as an allele and not written on the copy.
What it can come out as
| Outcome | Carrying |
|---|---|
| Violet glass | Sgv/Sgv |
| Meadow glass | Sgm/Sgm |
| Grisaille glass | Sgg/Sgg |
| Two trays | Sgv/Sgm |
| Two trays | Sgv/Sgg |
| Two trays | Sgm/Sgg |
| Wild type | Sgv/n · Sgm/n · Sgg/n · n/n |
How each one is actually drawn - region by region, and the layers it is built from - is on the coding tab.
Crossing two of them
Finding one
About 1 in 1,786 wild horses is born showing this. That is the whole of the supply: catch one, or make one with the carrot below. Breeds set their own pools and a breed built around this gene will carry it far more often than the wild population does.
| Wild pair | Shows as | How often |
|---|---|---|
Sgv/Sgv | Violet glass | 0.04% — 1 in 2,500 |
Sgv/Sgm | Two trays | 0.0032% — 1 in 31,250 |
Sgv/Sgg | Two trays | 0.0032% — 1 in 31,250 |
Sgm/Sgm | Meadow glass | 0.0032% — 1 in 31,250 |
Sgm/Sgg | Two trays | 0.0032% — 1 in 31,250 |
Sgg/Sgg | Grisaille glass | 0.0032% — 1 in 31,250 |
n/n | Wild type | 99.944% |
Its gene carrot
The file
common/src/main/resources/horsegenetics/genes/stained_glass.json — a
data-driven gene, not a Java class. It is listed in the
index.json beside it and registered by Genes' class
initialiser at startup.
| Key | horsegenetics.stained_glass |
|---|---|
| Phase | magical — it adds signed colour in phase 3, after the pigment has resolved |
| Priority | 382 — where it sits in the one (priority, key) paint order |
| Alleles | Sgv · Sgm · Sgg · n |
| Varies per horse | 3 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look |
| Built from | CRACKLE, PALETTE, TOWARD |
Why it is built this way
The palette is the ALLELE here, not an epigenetic value, which is unique in the registry - every other gene that varies its colour writes a hue on the allele copy. It is deliberate: a stained-glass window is a made object with a chosen palette, and a horse whose window drifted hue by hue down the generations would be a different idea. The consequence is that mixing two lines gives a window with both trays in it rather than an average of the two.
What it paints
Each outcome, described the way the gene file describes it, and then the layers that draw it in the order they are painted. The prose is the part a reader checks a bake against; the list underneath is what the engine actually did.
Violet glass
Two violet copies. The leading is straight-sided everywhere - the polygons are an unwarped tiling, so every edge is a line and the corners meet three at a time - and the panes between it carry a light wash of blue, pink and purple. Each pane takes one colour whole, because the palette is read off the same lattice the leading was cut from: the colour and the shape are the same cell.
- the panes, each washed a quarter of the way to its own colour —
CRACKLE, painted withPALETTE - the leading between them —
CRACKLE inverted, painted withTOWARD
Meadow glass
Two meadow copies. The same leading, and panes of green, yellow and white instead.
- the panes, each washed a quarter of the way to its own colour —
CRACKLE, painted withPALETTE - the leading between them —
CRACKLE inverted, painted withTOWARD
Grisaille glass
Two grisaille copies. The same leading again, and panes of grey and white only - the colourless glazing a real window uses where it wants light rather than a picture. It is the one palette here that reads as glass on any base coat, because it adds no hue of its own to argue with the horse.
- the panes, each washed a quarter of the way to its own colour —
CRACKLE, painted withPALETTE - the leading between them —
CRACKLE inverted, painted withTOWARD
Two trays
One copy of each. No variant is dominant to another, so the horse gets a window cut the same way with both palettes in the tray - and a pane may take any colour from either. No wild horse is born with a mixed pair, so every one of these was made on purpose.
- the panes, each washed a quarter of the way to its own colour —
CRACKLE, painted withPALETTE - the leading between them —
CRACKLE inverted, painted withTOWARD
Two trays
One copy of each. No variant is dominant to another, so the horse gets a window cut the same way with both palettes in the tray - and a pane may take any colour from either. No wild horse is born with a mixed pair, so every one of these was made on purpose.
- the panes, each washed a quarter of the way to its own colour —
CRACKLE, painted withPALETTE - the leading between them —
CRACKLE inverted, painted withTOWARD
Two trays
One copy of each. No variant is dominant to another, so the horse gets a window cut the same way with both palettes in the tray - and a pane may take any colour from either. No wild horse is born with a mixed pair, so every one of these was made on purpose.
- the panes, each washed a quarter of the way to its own colour —
CRACKLE, painted withPALETTE - the leading between them —
CRACKLE inverted, painted withTOWARD
Wild type
Nothing. Both variants are recessive to the wild type, so a single copy of either is silent and a carrier looks like any other horse.
Paints nothing.