A new layer used to be a white sheet that hid the picture: layers carried
RGB only, so nothing could say "this pixel is empty". LayerAbsorb made it
worse by copying the whole composite into the active layer, so the layer
below appeared twice.
- Layer carries coverage (0..255 per pixel) beside RGB; the background has
none (it covers everything), a new layer starts with an empty one, and
WritePatch sets the coverage of the layer being painted, so a stroke is
opaque while the rest of the layer stays clear.
- LayerAbsorb takes only the covered pixels of a layer that has coverage;
the background still takes the whole picture.
- The Layers palette is a list, not a label: one row per layer, top of the
stack first, an eye to hide it, the name to make it active. Rows are
rebuilt where the stack changes (new/duplicate/delete/merge), never from
inside a row's own callback.
- Layer Options sets opacity and blend mode through FieldDialog, and does
not absorb first: a property is not new pixels, and reading the composite
back baked the old blend in (50% gave 127,0,0; multiply over white went
black).
- New -layertest drives the real CanvasInput -- stack first, then the
stroke, the order that matters, because LayerEnsure after the stroke
would read the pixmap back and hide the fault.
Verified: 26/26 green (13 modes on depth 24 and depth 8), 206 menu paths
bound, 0 unbound, 0 doubled; build without warnings.