|
|
|
@ -89,13 +89,6 @@ export class Canvas { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static Foo(canvas: HTMLCanvasElement) { |
|
|
|
const ctx = canvas.getContext("2d")!; |
|
|
|
ctx.fillStyle = "#FF0000"; |
|
|
|
ctx.fillRect(0, 0, 150, 75); |
|
|
|
} |
|
|
|
|
|
|
|
static createWebGLContext(htmlCanvas: HTMLCanvasElement): WebGLRenderingContext | WebGL2RenderingContext { |
|
|
|
const contextAttributes = { |
|
|
|
alpha: 1, |
|
|
|
|