0

I would like to put p5js canvas in my divisions background. How to do that? I know how to put canvas in div but don't know how to put in background.

lebelinoz
  • 4,890
  • 10
  • 33
  • 56
joeydash
  • 81
  • 1
  • 12

1 Answers1

3

This isn't really a P5.js question. It's more a general HTML and CSS question. I recommend googling something like html use canvas as background of div for a ton of results, including:

Taking a step back, it's worth noting that Stack Overflow isn't really designed for general "how do I do this" type questions. It's for more specific "I tried X, expected Y, but got Z instead" type questions. So you should really try to do some research and write some code and then post a MCVE if you get stuck. Good luck.

Kevin Workman
  • 41,537
  • 9
  • 68
  • 107