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

    Function fillPixelDataBinaryMask

    • Fills the target PixelData with a color based on a binary mask.

      Parameters

      • target: PixelData32

        The target to modify.

      • color: Color32

        The color to apply.

      • mask: BinaryMask

        The binary mask determining where to fill.

      • x: number = 0

        Horizontal offset to place the mask.

      • y: number = 0

        Vertical offset to place the mask.

      Returns boolean

      true if any pixels were actually modified.