{
let canvas = barnsleyIFS.render_deterministic({
init: outline,
image_width: width,
image_height: 800,
tolerance: 0,
max_depth: 1,
fill_colors: ["#008800", "#00aa00", "#00aa00", "#000000"],
stroke_colors: ["#002200", "#004400", "#004400", "#000000"],
axes: { origin: [-2.5, -0.2], font: "16px Times" }
});
let x = barnsleyIFS.xScale;
let y = barnsleyIFS.yScale;
let ctx = canvas.getContext("2d");
ctx.beginPath();
ctx.moveTo(x(outline[0][0]), y(outline[0][1]));
ctx.strokeStyle = "black";
ctx.lineWidth = 3;
for (let j = 0; j < outline.length; j++) {
ctx.lineTo(x(outline[j][0]), y(outline[j][1]));
}
ctx.lineTo(x(outline[0][0]), y(outline[0][1]));
ctx.stroke();
ctx.closePath();
return canvas;
}