Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IBlit<T>

Type parameters

Hierarchy

  • IBlit

Implemented by

Index

Methods

blit

  • blit(dest: T, opts?: Partial<BlitOpts>): void
  • Blits pixels into given dest pixel buffer, using provided options. If dest buffer is smaller than source buffer, only the top-left region will be written.

    Destination MUST be of same format as original. No conversion is performed.

    Parameters

    • dest: T

      -

    • Optional opts: Partial<BlitOpts>

      -

    Returns void

blitCanvas

  • blitCanvas(canvas: HTMLCanvasElement | CanvasRenderingContext2D, x?: number, y?: number): void
  • Converts and blits pixels into given canvas (or canvas context) at position x, y (0,0 by default). If canvas is smaller than source buffer, only the top-left region will be written.

    Parameters

    • canvas: HTMLCanvasElement | CanvasRenderingContext2D
    • Optional x: number
    • Optional y: number

    Returns void

Generated using TypeDoc