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

    Function fillPixelData

    • Fills a region or the PixelData32 buffer with a solid color.

      Parameters

      • dst: PixelData32

        The target to modify.

      • color: Color32

        The color to apply.

      • Optionalrect: Partial<Rect>

        Defines the area to fill. If omitted, the entire

      Returns boolean

      true if any pixels were actually modified.

    • Parameters

      • dst: PixelData32

        The target to modify.

      • color: Color32

        The color to apply.

      • x: number

        Starting horizontal coordinate.

      • y: number

        Starting vertical coordinate.

      • w: number

        Width of the fill area.

      • h: number

        Height of the fill area.

      Returns boolean