Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/neko/mod.ts>Neko

frame buffer deno module built on top of mini_fb with canvas api implementation and a webgpu renderer
Go to Latest
class Neko
import { Neko } from "https://deno.land/x/neko@1.1.2/mod.ts";

Constructors

new
Neko(options: NekoOptions)

Properties

readonly
active: boolean
height: number
readonly
mousePosition: [number, number]
readonly
mouseX: number
readonly
mouseY: number
readonly
open: boolean
readonly
scroll: number
width: number

Methods

addMenu(menu: Menu)
isKeyDown(key: string): boolean
isMouseButtonDown(key: string): boolean
limitUpdateRate(micros: number)
setBackgroundColor(
r: number,
g: number,
b: number,
)
setFrameBuffer(
buffer: Uint8Array,
width?: number,
height?: number,
)
setIcon(path: string)
setTitle(title: string)