Magical gene / lines and strokes

Moth Wings

A moth's wing read onto the barrel - chevron bands each with a dark edge, a paired eye-spot on the flank, and a scalloped hem along the belly.

What it can come out as

OutcomeCarrying
Moth WingsMwa/Mwa · Mwa/Mwc · Mwa/n
Moth Wings, colouredMwc/Mwc
Wild typeMwc/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
Mwa/MwaMoth Wings0.002% — 1 in 50,000
Mwa/MwcMoth Wings0.008% — 1 in 12,500
Mwa/nMoth Wings0.038% — 1 in 2,632
Mwc/MwcMoth Wings, coloured0.008% — 1 in 12,500
n/nWild type99.944%

Its gene carrot

The file

common/src/main/resources/horsegenetics/genes/moth_wings.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.moth_wings
Phasemagical — it adds signed colour in phase 3, after the pigment has resolved
Priority379 — where it sits in the one (priority, key) paint order
AllelesMwa · Mwc · n
Varies per horse8 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look
Built fromRINGS, SPOTS, TOWARD, WAVES

Why it is built this way

Imported from the magic-gene intake, 2026-09-08. Every element is drawn twice - wide and dark, then narrow and pale on top - which is how the whole gene gets its dark edges without a second mask type.

The row of chevrons is ONE mask with `spacing` turned up rather than several masks at different phases. WAVES is the only mask in the vocabulary that repeats evenly, and this is what that is for.

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.

Moth Wings

Each band is drawn twice - once wide and dark, once narrow and pale on top - which is how every element here gets its edge without a second mask type. The row of chevrons is one mask with its spacing turned up rather than several, an eye-spot built from a ring and a spot on one lattice, and a scalloped hem that is just a sine band low on the barrel.

  1. the dark edge of every chevron band — WAVES, painted with TOWARD
  2. the pale band inside it — WAVES, painted with TOWARD
  3. a paired eye-spot on the flank — RINGS, painted with TOWARD
  4. its pale pupil — SPOTS, painted with TOWARD
  5. a scalloped hem along the belly — WAVES, painted with TOWARD

Moth Wings, coloured

The same wing with the pale half in a colour the line carries. Fully recessive.

  1. the dark edge of every chevron band — WAVES, painted with TOWARD
  2. the pale band inside it — WAVES, painted with TOWARD
  3. a paired eye-spot on the flank — RINGS, painted with TOWARD
  4. its pale pupil — SPOTS, painted with TOWARD
  5. a scalloped hem along the belly — WAVES, painted with TOWARD

Wild type

No wings.

Paints nothing.