Skip to content

Instantly share code, notes, and snippets.

View dungwinux's full-sized avatar

Nguyễn Tuấn Dũng dungwinux

View GitHub Profile
@dungwinux
dungwinux / lib220.d.ts
Last active April 5, 2021 23:55 — forked from stephanlensky/lib220.d.ts
Ocelot IDE lib definition + IntelliSense unlock script
// lib220
/**
* Pixel: The type of each element in a canvas.
* Each number in pixel represents R, G, B, respectively.
*/
type Pixel = [number, number, number];
interface Canvas {
/**
* The drawLine function draws a line on the canvas that stretches from a designated