Skip to content

Commit 9841bcc

Browse files
authored
Merge pull request #1 from MrKleeblatt/main
TypeScript support
2 parents 61159a6 + 4d9dcf6 commit 9841bcc

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

background/MatrixRain.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { MatrixRain as MR } from "./MatrixRain.js";
2+
3+
export interface MatrixRainOptions {
4+
characters?: string;
5+
fontSize?: number;
6+
fontColor?: string;
7+
fadeColor?: string;
8+
fps?: number;
9+
}
10+
11+
export class MatrixRain extends MR {
12+
constructor(canvas: HTMLCanvasElement, options?: MatrixRainOptions) {
13+
// deno-lint-ignore no-explicit-any
14+
super(canvas, options as any);
15+
}
16+
}

deno.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"lib": [
4+
"dom",
5+
"es2017"
6+
]
7+
}
8+
}

0 commit comments

Comments
 (0)