Pixel Data JS - v0.28.0
    Preparing search index...

    Function blendColorPixelDataAlphaMask

    • Blends a solid color into a target pixel buffer using an alpha mask.

      Parameters

      • target: PixelData32

        The destination PixelData32 buffer to modify.

      • color: Color32

        The solid color to apply.

      • mask: AlphaMask

        The mask defining the per-pixel opacity of the target area.

      • Optionalopts: ColorBlendMaskOptions

        Configuration options including placement coordinates, bounds, global alpha, and mask offsets.

      Returns boolean

      true if any pixels were actually modified.

      If the width (w) or height (h) are omitted from the options, they will safely default to the dimensions of the provided mask to prevent out-of-bounds memory access.