Type Alias FramesOpts

FramesOpts: {
    canvasEl?: HTMLCanvasElement;
    maxIntervalMs?: number;
    showCanvas?: boolean;
}

Options for frames generator

Type declaration

  • Optional ReadonlycanvasEl?: HTMLCanvasElement

    If provided, this canvas will be used as the buffer rather than creating one.

  • Optional ReadonlymaxIntervalMs?: number

    Max frame rate (millis per frame), or 0 for animation speed

  • Optional ReadonlyshowCanvas?: boolean

    False by default, created canvas will be hidden