Coding Challenge #83: Chrome Extension with p5.js Sketch
In this coding challenge, I create a Chrome Extension which adds a p5.js drawing canvas on top of any webpage you visit. Code: https://thecodingtrain.com/challenges/83-p5-sketch-chrome-extension
๐ฅ Previous video: https://youtu.be/8zMMOdI5SOk?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
๐ฅ Next video: https://youtu.be/GWDx1GnxhOw?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
๐ฅ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
๐ค Programming from A to Z: http://shiffman.net/a2z
๐ p5.js Instance Mode reference: https://github.com/processing/p5.js/wiki/Global-and-instance-mode
Videos:
๐ Instance Mode: https://www.youtube.com/watch?v=Su792jEauZg
๐ Chrome Extensions playlist: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6bL9VOMT65ahNEri9uqLWfS
๐ด Coding Train Live 106: https://youtu.be/y0zS83xj0g0?t=45m5s
Related Coding Challenges:
๐ #82 Image Chrome Extension - The Ex-Kitten-sion!: https://youtu.be/8zMMOdI5SOk
๐ #84 Word Definition Chrome Extension: https://youtu.be/GWDx1GnxhOw
Timestamps:
00:00 Introduction to the Challenge!
00:32 manifest.json
01:06 Create a regular p5 sketch (Global Mode)
03:30 Include the p5.js libraries as content scripts
05:46 Finish the sketch!
08:38 Some Improvements
10:21 Why does this only work half of the time?
12:18 Using Instance Mode
16:46 Remove user select from the body
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
๐ Website: http://thecodingtrain.com/
๐พ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
๐ฉ Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
๐ก GitHub: https://github.com/CodingTrain
๐ฌ Discord: https://thecodingtrain.com/discord
๐ Membership: http://youtube.com/thecodingtrain/join
๐ Store: https://standard.tv/codingtrain
๐๏ธ Twitter: https://twitter.com/thecodingtrain
๐ธ Instagram: https://www.instagram.com/the.coding.train/
๐ฅ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
๐ฅ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
๐ p5.js: https://p5js.org
๐ p5.js Web Editor: https://editor.p5js.org/
๐ Processing: https://processing.org
๐ Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#chromeextensions #bookmarklets #doodlecanvas #drawingwebpage #javascript #p5js