13 lines
269 B
JavaScript
13 lines
269 B
JavaScript
// A frameworking class assigning some CSS classes to the canvas to make it integrate nicer with CSS.
|
|
class Frame extends HTMLCanvasElement {
|
|
constructor() {
|
|
super();
|
|
|
|
this.style.cssText = `
|
|
|
|
`;
|
|
}
|
|
|
|
// Override this!
|
|
draw() { }
|
|
}
|