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

    Function fillPixelDataBinaryMask

    • Fills a region of the PixelData32 buffer with a solid color using a mask.

      Parameters

      • target: PixelData32

        The target to modify.

      • color: Color32

        The color to apply.

      • mask: BinaryMask

        The mask defining the area to fill.

      • x: number = 0

        Starting horizontal coordinate for the mask placement.

      • y: number = 0

        Starting vertical coordinate for the mask placement.

      Returns boolean