Skip to content

Instantly share code, notes, and snippets.

View pedroth's full-sized avatar
💭
Ω( ∫ dα ) = ∂Ω( ∮ α )

Pedroth pedroth

💭
Ω( ∫ dα ) = ∂Ω( ∮ α )
View GitHub Profile
// install `npm i tela.js`
import { loop, Color, Window } from "tela.js/src/index.node.js";
// Port from https://x.com/XorDev/status/1894123951401378051
const width = 640;
const height = 480;
const window = Window.ofSize(width, height);
window.setWindowSize(width, height);
loop(async ({ dt, time }) => {