Skip to content

Commit 252fe84

Browse files
author
Stefan Fenn
committed
update function3d plot
1 parent 596a065 commit 252fe84

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

graphplot.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,9 @@ export function draw3dFunction(c, zMin, zMax, alpha, gv, func) {
332332
}
333333
c.ctx.putImageData(data, 0, 0);
334334
if (w < c.ctx.canvas.width) {
335-
drawInTimeSlot();
335+
setTimeout(()=> drawInTimeSlot());
336336
}
337337
};
338338

339339
drawInTimeSlot();
340-
c.ctx.putImageData(data, 0, 0);
341340
}

0 commit comments

Comments
 (0)