Magical gene / fields and regions

Petaled

The coat breaks into overlapping petals, each rimmed in dark rose and then in black, veined across a pale blush field like a flower caught mid-bloom.

What it can come out as

OutcomeCarrying
PetaledPtl/Ptl · Ptl/n
Wild typen/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 2,500 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
Ptl/PtlPetaled0.002% — 1 in 50,000
Ptl/nPetaled0.038% — 1 in 2,632
n/nWild type99.96%

Its gene carrot

The file

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

Why it is built this way

The four zones are four readings of one tessellation with only the wall distance moved, so the rose rim, the black line, the blush field and the veins over it all share the same petal edges. Give any of them a different seed or scale and the flower comes apart into four unrelated markings that happen to overlap.

CRACKLE's walls are straight polygon facets by nature; the warp knob is what bends them into petal curves. Under close inspection it is still a Voronoi cell, and at coat scale it reads as a flower - which is what it was tuned against.

The vein scale and warp are fixed rather than knobs. Only the seed is heritable, so vein placement varies horse to horse without vein density drifting into a wash on some lines.

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.

Petaled

The coat over the body, neck, head and muzzle breaks into overlapping petals - a thin dark rose edge, then a thick black line, then a pale blush field veined in rose toward the middle.

  1. the blush field of each petal — PARTS × CRACKLE, painted with TOWARD
  2. the rose veins across it — PARTS × CRACKLE × FRACTAL, painted with TOWARD
  3. the black line round the rim — PARTS × CRACKLE × CRACKLE, painted with TOWARD
  4. and the dark rose edge outside that — PARTS × CRACKLE inverted, painted with TOWARD

Wild type

Nothing.

Paints nothing.