From bb0b53c4641a3df0d294d870df2a19437d441980 Mon Sep 17 00:00:00 2001 From: Vishesh Yadav Date: Sat, 2 May 2015 14:33:42 -0400 Subject: [PATCH] Clear big-bang canvas on each to-draw event #12 --- whalesong/world/kernel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/whalesong/world/kernel.js b/whalesong/world/kernel.js index 2a283d5..9cf716f 100644 --- a/whalesong/world/kernel.js +++ b/whalesong/world/kernel.js @@ -315,6 +315,7 @@ ToDraw.prototype.toRawHandler = function(MACHINE, toplevelNode) { reusableCanvas.height = height; } var ctx = reusableCanvas.getContext("2d"); + ctx.clearRect(0, 0, width, height); v.render(ctx, 0, 0); success([toplevelNode, reusableCanvasNode]); } else {