cara mengatur kanvas di latar belakang html

document.body.style.background = "url(" + canvas.toDataURL() + ")";
To actually set this as the background, you can take advantage of the canvas element's toDataURL method which will create an image from your canvas, which you can set as the src of an image or a background
Concerned Caribou