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

    Function fillPixelDataFast

    • Fills a region or the PixelData32 buffer with a solid color. This function is faster than fillPixelData but does not return a boolean value indicating changes were made.

      Parameters

      • target: PixelData32

        The target to modify.

      • color: Color32

        The color to apply.

      • Optionalrect: Partial<Rect>

        Defines the area to fill. If omitted, the entire buffer is filled.

      Returns void

    • 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 void