@OPEN-KAPPA/COLORS
    Preparing search index...

    Class PorterDuffBlendAbstract

    Image Processing blending and compositing. Implementation compliant with Porter-Duff Compositing Operators. Operations are performed in Linear RGB space.

    Index

    Methods

    • Blend two colors by applying source blend over target base. Notes:

      • Rgb, P3, Rec2020, Rec709, AdobeRgb are accepted for legacy compatibility, but discouraged.

      Type Parameters

      Parameters

      • base: C

        The base color.

      • blend: C

        The blend color.

      • opacity: number

        The opacity in range 0-1.

      • pdFn: PorterDuffFn

        The composition function.

      Returns C

      The composed function.

    • The blend color completely covers the base color based on opacity.

      Parameters

      • _aBase: number

        The base alpha.

      • aBlend: number

        The blend alpha.

      Returns PorterDuffF

      The coefficients.