Magical gene / magical coat genes
Nymphaline
The barrel carries the membrane of a butterfly wing - rose cells netted by dark green veins, each vein edged in cream, all of them radiating from a spar along the topline.
What it can come out as
| Outcome | Carrying |
|---|---|
| Nymphaline | Wn/Wn · Wn/Wf · Wn/n |
| Frosted wing | Wf/Wf |
| Wild type | Wf/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 |
|---|---|---|
Wn/Wn | Nymphaline | 0.002% — 1 in 50,000 |
Wn/Wf | Nymphaline | 0.008% — 1 in 12,500 |
Wn/n | Nymphaline | 0.038% — 1 in 2,632 |
Wf/Wf | Frosted wing | 0.008% — 1 in 12,500 |
n/n | Wild type | 99.944% |
Its gene carrot
The file
common/src/main/resources/horsegenetics/genes/nymphaline.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.nymphaline |
|---|---|
| Phase | magical — it adds signed colour in phase 3, after the pigment has resolved |
| Priority | 118 — where it sits in the one (priority, key) paint order |
| Alleles | Wn · Wf · n |
| Varies per horse | 7 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look |
| Built from | AXIS, CRACKLE, FAN, NOISE, PARTS, RAMP, TOWARD |
Why it is built this way
The source was an SVG: eight posterised colour layers traced off a close photograph of a green-and-pink wing, about 300 KB of path data. That is exactly the traced photograph the SVG mask's point ceiling exists to keep out, and it is also the wrong shape of thing - the picture is a patch of membrane, not an outline, so there was nothing to place. It is rebuilt here as a rule.
Reading of the source, in the order the layers restate it: a thick dark spar down one edge; veins radiating off it and widening as they travel; a pale cream ridge running alongside every vein on both sides; rose membrane between them in two values that pool into each other rather than banding; and a darker margin at the far edge where the venation breaks down into a fine net of small cells.
FAN is the whole of the radiating half, and the origin is the number that decides whether it works. Put the pivot above the back and the barrel subtends about 74 degrees of it, so a spacing wide enough to give veins a texel of width leaves three of them on the whole flank. The pivot therefore sits ON the flank, at the point of the shoulder (u 0.68, v 0.58), where the barrel subtends nearer 100 degrees and a spacing of 0.29 puts six veins across it at about 0.75 body units wide out at mid-flank. Moving the root is the first thing to check if the vein count comes out wrong.
spacing is an angle, so vein width scales with distance from the root: about a third of a unit at r=5 and nearly two units at the tail end. That is what a wing does, and it is also why inner is 3.5 - inside that radius the veins are under a texel and would break into stipple, and the spar layer covers the root anyway.
The cream ridge is two FAN masks on one origin and one spacing, the narrow one inverted: a wide bar minus the vein core is a band either side of it. They must stay on the same knobs or the ridge walks off the vein.
The lower-rear net is CRACKLE rather than a finer FAN, and deliberately: a second fan fine enough to read as secondary venation comes out under half a texel wide at every radius on the barrel. CRACKLE with vertexWeight up pools where channels meet and thins between them, which is what a vein network does and what the source shows in that corner.
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.
Nymphaline
The flank is a butterfly wing: rose membrane cut into cells by dark green veins that radiate from a heavy spar along the back, every vein edged in cream, the venation breaking down into a fine dark net over the lower hindquarter.
Layer order is load-bearing at the veins: the cream ridge is painted before the vein core, so the vein sits down the middle of its own highlight. Swapping them puts a green line beside a cream one.
- the membrane - two roses pooling into each other —
PARTS, painted withRAMP - the margin darkening down and back —
AXIS inverted×AXIS×NOISE, painted withTOWARD - the fine net where the venation breaks down —
CRACKLE×AXIS inverted×AXIS, painted withTOWARD - the cream ridge either side of every vein —
FAN×FAN inverted, painted withTOWARD - the veins —
FAN, painted withTOWARD - cream running under the spar —
AXIS, painted withTOWARD - the spar along the topline —
AXIS, painted withTOWARD
Frosted wing
The same venation with the pigment gone out of it - a bone-white membrane veined in grey-green, like a wing held up to the light.
The recessive half of the usual pair. Same masks and the same knobs, so a horse that changes form between generations keeps its own venation; only the four colours move.
- the membrane, drained —
PARTS, painted withRAMP - the margin darkening down and back —
AXIS inverted×AXIS×NOISE, painted withTOWARD - the fine net where the venation breaks down —
CRACKLE×AXIS inverted×AXIS, painted withTOWARD - the pale ridge either side of every vein —
FAN×FAN inverted, painted withTOWARD - the veins —
FAN, painted withTOWARD - the spar along the topline —
AXIS, painted withTOWARD
Wild type
No wing.
Paints nothing.