}
}

String.format.map['adjective'] = "adjective";

const cat = new Animal("cat");
template = "You see a %{adjective,black}.";

SHOW(template.format(cat));

// Keyboard Handling not included, as nothing ROT specific in there

// RNG / Generating random values

SHOW(
    ROT.RNG.getUniform(),
    ROT.RNG.getNormal(0, 10),
    ROT.RNG.getPercentage()
);
// ----

const canvas = document.createElement("canvas");
canvas.width = 500;
canvas.height = 200;
SHOW(canvas);

const ctx = canvas.getContext("2d");
ctx!.fillStyle = "#fff";
ctx!.fillRect(0, 0, canvas.width, canvas.height);
ctx!.fillStyle = "#f00";