CONTEXT: string = ...

The variable for setting the default JavaScript Canvas API context for Chalkboard to use.

Example

// This must be done if the CanvasRenderingContext2D variable is not named "ctx"
// In this example, it is named "context"
const context = document.getElementById("canvas").getContext("2d");
Chalkboard.CONTEXT = "context";

Generated using TypeDoc