fullseye

alpha_composite_premul — GFX2D composite op

使い方

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 associativeover(over(A, B), C) == over(A, over(B, C)) to float64 rounding, which the test suite checks as an equality rather than a tolerance.

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(rgba_premul を入力に取れる)

unpremultiply

同カテゴリ(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.