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
| Outcome | Carrying |
|---|---|
| Petaled | Ptl/Ptl · Ptl/n |
| Wild type | 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 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 pair | Shows as | How often |
|---|---|---|
Ptl/Ptl | Petaled | 0.002% — 1 in 50,000 |
Ptl/n | Petaled | 0.038% — 1 in 2,632 |
n/n | Wild type | 99.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.
| Key | horsegenetics.petaled |
|---|---|
| Phase | magical — it adds signed colour in phase 3, after the pigment has resolved |
| Priority | 288 — where it sits in the one (priority, key) paint order |
| Alleles | Ptl · n |
| Varies per horse | 4 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look |
| Built from | CRACKLE, 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.
- the blush field of each petal —
PARTS×CRACKLE, painted withTOWARD - the rose veins across it —
PARTS×CRACKLE×FRACTAL, painted withTOWARD - the black line round the rim —
PARTS×CRACKLE×CRACKLE, painted withTOWARD - and the dark rose edge outside that —
PARTS×CRACKLE inverted, painted withTOWARD
Wild type
Nothing.
Paints nothing.