composite op• Datenarten: table → rgba
• Aufruf: import gfx2d; gfx2d.layer_stack(layers) (oder opsgfx2d.get("layer_stack"))
Komponiert eine z-geordnete Liste von `rgba`-Ebenen, von unten beginnend.
> Die ausführliche Beschreibung unten ist der Originaltext — Zusammenfassung und Überschriften sind übersetzt.
Each layer is a dict:
`{"image": rgba, "mode": str = "normal", "opacity": float = 1.0}`
and the W3C rule for a blend mode against a *partially transparent* backdrop
is used — the blend function is weighted by the backdrop's own alpha,
`Cs' = (1 - a_b) Cs + a_b B(Cb, Cs)` — so a layer over empty space keeps
its own colour whatever the mode. The result is straight-alpha `rgba`.
All layers must share one shape; see :func:alpha_composite on why.
Raises ValueError: empty list, more than :data:MAX_LAYERS, a non-dict
entry, an unknown key, mismatched shapes.
• Katalog der Beispieldaten (Download-URLs / Lizenzen) — 2-D nutzt skimage.data (BSD/Public Domain) plus synthetische Bilder, 3-D nennt Download-URLs echter Datenquellen (Stanford, PDS, …).
• Herkunft und Literatur der Operatoren — die Quellen der Forschung/Verfahren, auf denen diese Operatorfamilie beruht.
• Der kanonische Algorithmus (Autor, Jahr) und seine Anwendungen stehen im Familienleitfaden oben.
• gfx2d_scene — py -3.11 examples/gfx2d_scene.py
rgba als Eingabe)premultiply · alpha_composite · sprite_blit · sprite_transform · sprite_sheet_slice · nine_slice
composite)premultiply · unpremultiply · alpha_composite · alpha_composite_premul · blend_mode
*Provenance: gfx2d.py — GFX2D Operator-Registry. Diese Notiz wird von tools/opdocs.py md erzeugt (nicht von Hand bearbeiten).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.