Porter-Duff operator. The destination that overlaps the source is composited with the source and replaces the destination.
Porter-Duff operator. The destination that overlaps the source, replaces the source.
Porter-Duff operator. The destination that does not overlap the source replaces the source.
Porter-Duff operator. The destination color is placed over the source color.
Porter-Duff operator. Always results in src
color, dest
ignored.
Porter-Duff operator. The source that overlaps the destination is composited with the destination.
Porter-Duff operator. The source that overlaps the destination, replaces the destination.
Porter-Duff operator. The source that does not overlap the destination replaces the destination.
Porter-Duff operator. The source color is placed over the destination color.
Porter-Duff operator. The non-overlapping regions of source and destination are combined.
Porter-Duff operator. None of the terms are used. Always results in [0, 0, 0, 0].
General Porter-Duff HOF operator for pre-multiplied RGBA. Use
porderDiffP
for applying pre & post multiplication of input and
output colors. The returned function takes 3 arguments:
out
color (if null
or undefined
writes to dest
)src
color (background)dest
color (foreground)Reference: https://drafts.fxtf.org/compositing-1/#advancedcompositing http://www.svgopen.org/2005/papers/abstractsvgopen/#PorterDuffMap
blend function
factor of "both" region
factor of "src" region
factor of "dest" region
Like porterDuff
, but pre-multiplies alpha for both input colors and
then post-multiplies alpha to output.
Generated using TypeDoc
Porter-Duff operator. Always results in
dest
color,src
ignored.porterDuff