composite oprgba_premul × rgba_premul → rgba_premulimport fullseye as fs; fs.ledger.alpha_composite_premul(src, dst) (実装を直接呼ぶなら import gfx2d; gfx2d.alpha_composite_premul(src, dst)、台帳から引くなら opsgfx2d.get("alpha_composite_premul"))Porter–Duff over on premultiplied colour: src + dst*(1 - src.a).
This is the operator; :func:alpha_composite is this one with a conversion
on each side. Being affine in dst, it is exactly associative —
over(over(A, B), C) == over(A, over(B, C)) to float64 rounding, which the
test suite checks as an equality rather than a tolerance.
py -3.11 examples/gfx2d_scene.pyrgba_premul を入力に取れる)composite)premultiply · unpremultiply · alpha_composite · blend_mode · layer_stack
Provenance: gfx2d.py — GFX2D operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.