0

i'm experimenting a bit with creative coding and creating visuals with javascript. And put them on a website. It's using canvas-sketch (https://github.com/mattdesl/canvas-sketch), comparable to Processing or p5.js.

The problem i'm facing: It generates automatically a canvas div inside a "main" div, so i can't really control it by placing it inside parent divs. Is there a way to do that? Thanks in advance.

Similar solution for p5.js: https://github.com/processing/p5.js/wiki/Positioning-your-canvas#relocating-the-canvas

<html>
  <body>
    <script src="p5.js"></script>
  </body>
</html>

Online example: https://jellekok.com/vonk/p5/p5b.html JS file: https://jellekok.com/vonk/p5/p5.js (made with canvas-sketch)

Jelle
  • 29
  • 1
  • 8

0 Answers0