Q&A #6: p5.js Sketch as Background

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=OIfEHD3KqCg



Duration: 10:22
45,110 views
1,148


In this Q&A, I look at how to place a p5.js sketch as a full background on a web page. I cover HTML/CSS concepts such as the CSS property "z-index") as well as p5.js functions like windowResize() and resizeCanvas().

Support this channel on Patreon: https://patreon.com/codingtrain

Send me your questions and coding challenges!: https://github.com/CodingTrain/Rainbow-Topics

Contact: https://twitter.com/shiffman

Source Code for the Video Lessons: https://github.com/CodingTrain/Rainbow-Code

p5.js: https://p5js.org/
Processing: https://processing.org

For More Creative Coding Q&A: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Z1JcqC1iG1oEsJrLX1IK5L

For More HTML/CSS/DOM Videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6bI1SlcCRfLH79HZrFAtBvX

Help us caption & translate this video!

http://amara.org/v/YS3o/

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct







Tags:
js
p5
javascript
p5.js
javascript (programming language)
p5.js tutorial
creative coding
tutorial
p5 js
p5js
programming
html (programming language)
html5 canvas
full background
background html
canvas background
z-index
javascript resize event
coding
daniel shiffman
q&a
windowResized
resizeCanvas
CSS z-index
animated background web