Skip to content

resize

Resize the canvas element of the emulator.

Usage

const nostalgist = await Nostalgist.nes('flappybird.nes')
nostalgist.resize({ width: 1000, height: 800 })

Arguments

  • size

    type: { width: number, height: number }

    width and height represent the size of the canvas element, in pixel.