Magical gene / magical coat genes

Bargello

Sharp zigzag ribbons run the length of the ribcage in stacked colours, over a fine screen of straight horizontal lines.

What it can come out as

OutcomeCarrying
Ashen bargelloP/P · P/C · P/n
BargelloC/C
Wild typeC/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
P/PAshen bargello0.002% — 1 in 50,000
P/CAshen bargello0.008% — 1 in 12,500
P/nAshen bargello0.038% — 1 in 2,632
C/CBargello0.008% — 1 in 12,500
n/nWild type99.944%

Its gene carrot

The file

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

Why it is built this way

shape=triangle is the whole reason this can be drawn at all. WAVES is the one mask here that repeats on purpose, and triangle is one of only two waveforms that fold the edge into teeth with STRAIGHT sides. Everything noise-derived rounds its corners off, and a rounded zigzag is a ripple, not a glitch.

spacing 6.4 is what turns one band into a stack of parallel ribbons that rise and fall together. Four of the five layers share ONE wavelength (6.5), ONE amplitude (3.4), ONE spacing and phase 0, and differ only in from and to - which is what nests them inside each other. Change the wavelength on one layer alone and it becomes an unrelated zigzag crossing the others.

Band widths: black 4.6, green 3.2, magenta 1.95, violet 0.85. The rims that survive are 0.65 / 0.65 / 0.3 / 0.55 units. The magenta-to-violet rim at 0.3 is BELOW a texel on one side and will read as a hard transition rather than as a band - it is left in because it still separates the two colours, but do not expect a violet outline there.

The screen is a WAVES at amplitude 0, which collapses it to straight parallel ribbons - 0.7 units on, 0.7 off. That is the finest an even line screen can go here: a texel is 0.5 units, so anything tighter is one pixel on, one off, and then aliasing decides what you see.

No black form. The acid green and magenta are the gene; in greys this is just a chevron.

Sourced from a traced SVG, but not drawn with the SVG mask. The trace runs to thousands of path commands over hundreds of subpaths, most of it trace noise - well past the point ceiling, which exists to keep a traced photograph out of a gene file, and it would have made the marking identical on every horse. The reference was read for what KIND of shape each element is and rebuilt from field masks. A hand-drawn, low-node version of the source would be worth the SVG mask with its d string verbatim.

Arrived keyed 'ixora.bargello'. Renamed to the horsegenetics namespace every other gene in the mod uses - the format allows a modder their own, but a gene shipping INSIDE this mod under a second namespace breaks the tooling that builds a key from a slug.

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.

Ashen bargello

Stacked grey zigzags over a fine line screen along the ribs.

  1. the line screen behind it — PARTS × AXIS × WAVES, painted with TOWARD
  2. the black between the chevrons — PARTS × AXIS × WAVES, painted with TOWARD
  3. the green chevron — PARTS × AXIS × WAVES, painted with TOWARD
  4. the magenta chevron — PARTS × AXIS × WAVES, painted with TOWARD
  5. the violet core of the chevron — PARTS × AXIS × WAVES, painted with TOWARD

Bargello

Zigzag ribbons in stacked colour, black-edged, over a fine line screen.

  1. the line screen behind it — PARTS × AXIS × WAVES, painted with TOWARD
  2. the black between the chevrons — PARTS × AXIS × WAVES, painted with TOWARD
  3. the green chevron — PARTS × AXIS × WAVES, painted with TOWARD
  4. the magenta chevron — PARTS × AXIS × WAVES, painted with TOWARD
  5. the violet core of the chevron — PARTS × AXIS × WAVES, painted with TOWARD

Wild type

No marking.

Paints nothing.