Skip to content

getCanvas

Get the canvas DOM element that the current emulator is using.

Usage

const nostalgist = await Nostalgist.launch('flappybird.nes')
const canvas = nostalgist.getCanvas()
console.log(canvas) // a canvas element