Magical gene / lines and strokes

Riblines

Thin white strokes following the skeleton - down the neck, along the rib arcs, over the scapula and hip - and set as rings around the legs. A third allele carries the same marking worked in greys instead of white - dark where the pale form is light, and the same number of steps.

What it can come out as

OutcomeCarrying
RiblinesRib/Rib · Rib/Rbc · Rib/n · Rib/Rbk
Black riblinesRbk/Rbk · Rbk/Rbc · Rbk/n
Coloured riblinesRbc/Rbc
Wild typeRbc/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 893 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
Rib/RibRiblines0.004% — 1 in 25,000
Rib/RbkRiblines0.0053% — 1 in 18,751
Rib/RbcRiblines0.0053% — 1 in 18,751
Rib/nRiblines0.076% — 1 in 1,316
Rbk/RbkBlack riblines0.0053% — 1 in 18,751
Rbk/RbcBlack riblines0.0053% — 1 in 18,751
Rbk/nBlack riblines0.0053% — 1 in 18,751
Rbc/RbcColoured riblines0.0053% — 1 in 18,751
n/nWild type99.888%

Its gene carrot

The file

common/src/main/resources/horsegenetics/genes/riblines.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.riblines
Phasemagical — it adds signed colour in phase 3, after the pigment has resolved
Priority363 — where it sits in the one (priority, key) paint order
AllelesRib · Rbk · Rbc · n
Varies per horse3 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look
Built fromAXIS, STROKES, TOWARD

Why it is built this way

The black allele is the white one with the light taken out of it, and it sits one rung under white in the dominance series - so every combination that existed before it keeps the outcome it had, and only the pairs carrying Rbk are new. The re-toning is a mapping rather than a repaint: every achromatic target moves into the dark end of the scale keeping its order and its spacing, and every SATURATED one is left alone, because that colour is the gene rather than its lightness.

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.

Riblines

Sharp-edged white strokes that taper to points at both ends and hold one value along their whole length - no gradient inside a stroke. They run dorso-ventrally on the neck, along the rib arcs on the barrel, down the scapular spine, out from the point of hip, and around the legs rather than along them. Twenty to fifty a side, parallel within a zone and turning as the zone does.

  1. strokes down the neck and along the ribs — STROKES, painted with TOWARD
  2. rings set around the legs — STROKES × AXIS, painted with TOWARD

Black riblines

The same marking as the white form with the light taken out of it: a single near-black tone.

  1. strokes down the neck and along the ribs — STROKES, painted with TOWARD
  2. rings set around the legs — STROKES × AXIS, painted with TOWARD

Coloured riblines

The same lines, in a colour the line of horses carries rather than in white. Fully recessive - it takes two copies, and a single copy beside the white allele shows white. It never gives blue eyes; the white form may.

  1. coloured strokes down the neck and along the ribs — STROKES, painted with TOWARD
  2. coloured rings set around the legs — STROKES × AXIS, painted with TOWARD

Wild type

No riblines.

Paints nothing.