[?33hAnsiLove.render("cl!-al02.ans", function (canvas, sauce) { document.getElementById("ansi-container").appendChild(canvas); console.log(sauce); }, {"bits": "9"}); // And for producing extremely long files, // spanning multiple canvas elements by splitting every nth row... [?33hAnsiLove.splitRender("long_ansi.ans", function (canvases, sauce) { canvases.forEach(function (canvas) { canvas.style.verticalAlign = "bottom"; // For perfect, gap-less viewing document.getElementById("ansi-container").appendChild(canvas); }); console.log(sauce); }, 27, {"bits": "8"}); // And for ansimations... var controller = [?33hAnsiLove.animate("ansimation.ans", function (canvas, sauce) { document.getElementById("ansi-container").appendChild(canvas); console.log(sauce); controller.play(2800, function () { console.log("Finished Playing"); }); }, {"bits": "9"});