Magical gene / lines and strokes

Emberveins

Fine seams trace the coat like cracked stone about to give way - molten orange in the glowing form, a quiet rust vein-work in the other - with drifting embers and one wandering thread of light caught along the flank.

What it can come out as

OutcomeCarrying
Emberveins, glowingEmb/Emb · Emb/Emr · Emb/n
Emberveins, rustEmr/Emr
Wild typeEmr/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 7,143 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
Emb/EmbEmberveins, glowing0.0005% — 1 in 200,000
Emb/EmrEmberveins, glowing0.002% — 1 in 50,000
Emb/nEmberveins, glowing0.0095% — 1 in 10,526
Emr/EmrEmberveins, rust0.002% — 1 in 50,000
n/nWild type99.986%

Its gene carrot

The file

common/src/main/resources/horsegenetics/genes/emberveins.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.emberveins
Phasemagical — it adds signed colour in phase 3, after the pigment has resolved
Priority383 — where it sits in the one (priority, key) paint order
AllelesEmb · Emr · n
Varies per horse10 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look
Built fromCRACKLE, FRACTAL, PARTS, SPOTS, TOWARD, emissive

Why it is built this way

'vertexWeight' on the CRACKLE mask exists because of this gene. A crack read purely as distance-to-wall is a channel of EVEN width - that is what a distance to a plane is - and the reference's veins pool where cracks meet and thin to a hairline between the junctions. Blending in the distance to the three-way corners is what lets one threshold do both, and no arrangement of the other masks reaches it: SPOTS and DAPPLES measure to a cell's centre and know nothing about where its corners fell.

Both alleles draw the identical geometry from the same three seeds, so littermates of either genotype share a recognisable vein layout and only the paint differs. The recessive filament is fainter rather than absent - the same creature with the light turned down.

The reference image's three broad tones are the horse's base coat showing through the cracks, not part of this marking. It draws the network, the embers and the filament, and nothing else.

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.

Emberveins, glowing

Molten seams glow along the coat wherever the hide would naturally crease, brightest at a scatter of ember points and one thin drifting thread of light across the flank.

  1. the vein network — PARTS × CRACKLE inverted, painted with TOWARD, and it glows
  2. embers scattered along it — PARTS × SPOTS, painted with TOWARD, and it glows
  3. and one thread of light along the flank — PARTS × FRACTAL, painted with TOWARD, and it glows

Emberveins, rust

The same cracked seams as quiet rust-dark vein-work, with a scatter of ash-dark freckling and one faint hairline on the flank - no glow to any of it.

  1. the vein network — PARTS × CRACKLE inverted, painted with TOWARD
  2. embers scattered along it — PARTS × SPOTS, painted with TOWARD
  3. and one thread of light along the flank — PARTS × FRACTAL, painted with TOWARD

Wild type

Nothing.

Paints nothing.