p5.js put canvas in specific place

JavaScript
var myCanvas = createCanvas(winWidth, winHeight);
    myCanvas.parent("idnameofdiv");

Source

Also in JavaScript: