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

OutcomeCarrying
Violet glassSgv/Sgv
Meadow glassSgm/Sgm
Grisaille glassSgg/Sgg
Two traysSgv/Sgm
Two traysSgv/Sgg
Two traysSgm/Sgg
Wild typeSgv/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 pairShows asHow often
Sgv/SgvViolet glass0.04% — 1 in 2,500
Sgv/SgmTwo trays0.0032% — 1 in 31,250
Sgv/SggTwo trays0.0032% — 1 in 31,250
Sgm/SgmMeadow glass0.0032% — 1 in 31,250
Sgm/SggTwo trays0.0032% — 1 in 31,250
Sgg/SggGrisaille glass0.0032% — 1 in 31,250
n/nWild type99.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.

Keyhorsegenetics.stained_glass
Phasemagical — it adds signed colour in phase 3, after the pigment has resolved
Priority382 — where it sits in the one (priority, key) paint order
AllelesSgv · Sgm · Sgg · n
Varies per horse3 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look
Built fromCRACKLE, 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.

  1. the panes, each washed a quarter of the way to its own colour — CRACKLE, painted with PALETTE
  2. the leading between them — CRACKLE inverted, painted with TOWARD

Meadow glass

Two meadow copies. The same leading, and panes of green, yellow and white instead.

  1. the panes, each washed a quarter of the way to its own colour — CRACKLE, painted with PALETTE
  2. the leading between them — CRACKLE inverted, painted with TOWARD

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.

  1. the panes, each washed a quarter of the way to its own colour — CRACKLE, painted with PALETTE
  2. the leading between them — CRACKLE inverted, painted with TOWARD

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.

  1. the panes, each washed a quarter of the way to its own colour — CRACKLE, painted with PALETTE
  2. the leading between them — CRACKLE inverted, painted with TOWARD

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.

  1. the panes, each washed a quarter of the way to its own colour — CRACKLE, painted with PALETTE
  2. the leading between them — CRACKLE inverted, painted with TOWARD

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.

  1. the panes, each washed a quarter of the way to its own colour — CRACKLE, painted with PALETTE
  2. the leading between them — CRACKLE inverted, painted with TOWARD

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.