Uploaded January 2021 | Updated November 2026, 10 hours ago
Welcome to Chapter 3 of The Nature of Code: Oscillating Motion! I begin in this video by explaining angles, the different units of measurements for angles: degrees and radians, and how to rotate shapes in p5.js. Code: thecodingtrain.com/tracks/the-nature-of-code-2/noc/3-angles/1-angles-and-rotation
πΉοΈ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/sketches/y7ieDesyd
π₯ Previous video: youtu.be/GjbKsOkN1Oc?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
π₯ Next video: youtu.be/i2ROE_mAhU0?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
π₯ All videos: youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
References:
π Tau: p5js.org/reference/#/p5/TAU
Videos:
π₯ Transformations (Translate, Rotate, Push/Pop) - Part 1: youtu.be/o9sgjuh-CBM
Timestamps:
0:00 Hello!
0:25 Angles
1:32 Units of measurement for an angle
2:02 Radians
3:32 Why is pi so important?
5:13 Rotate by 90 degrees
6:36 angleMode(DEGREES);
7:26 Let's use radians
8:56 Rotation direction
10:32 See you in the next video!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: github.com/CodingTrain/Suggestion-Box
π‘ GitHub: github.com/CodingTrain
π¬ Discord: thecodingtrain.com/discord
βͺ Nebula: go.nebula.tv/codingtrain
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new
#forbeginners #javascript #p5js
Welcome to Chapter 3 of The Nature of Code: Oscillating Motion! I begin in this video by explaining angles, the different units of measurements for angles: degrees and radians, and how to rotate shapes in p5.js. Code: thecodingtrain.com/tracks/the-nature-of-code-2/noc/3-angles/1-angles-and-rotation
πΉοΈ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/sketches/y7ieDesyd
π₯ Previous video: youtu.be/GjbKsOkN1Oc?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
π₯ Next video: youtu.be/i2ROE_mAhU0?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
π₯ All videos: youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
References:
π Tau: p5js.org/reference/#/p5/TAU
Videos:
π₯ Transformations (Translate, Rotate, Push/Pop) - Part 1: youtu.be/o9sgjuh-CBM
Timestamps:
0:00 Hello!
0:25 Angles
1:32 Units of measurement for an angle
2:02 Radians
3:32 Why is pi so important?
5:13 Rotate by 90 degrees
6:36 angleMode(DEGREES);
7:26 Let's use radians
8:56 Rotation direction
10:32 See you in the next video!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: github.com/CodingTrain/Suggestion-Box
π‘ GitHub: github.com/CodingTrain
π¬ Discord: thecodingtrain.com/discord
βͺ Nebula: go.nebula.tv/codingtrain
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new
#forbeginners #javascript #p5js



![Coding Train Live: Riding the Oregon Trail 1
π‘Sign up for the CuriosityStream + Nebula bundle with a 26% exclusive discount ($14.79 for a full year!) at https://curiositystream.com/choochoo. To access my Nebula class, upgrade for $1 per month or $10 for year!
Launching my next project, a p5.js port of the original Apple ][ Oregon Trail game!
π» AppleSoft BASIC 3D Cube https://thecodingtrain.com/challenges//175-3D-cube-applesoft-basic
π» Oregon Trail repo https://github.com/shiffman/Oregon-Trail
0:00 Waiting to Start
6:36 Hello everyone!
23:50 Recent announcements in Discord
25:17 New shorts
30:41 Passengers Showcases
35:03 Design System International Coding Train website case study
45:58 Apple ][ 3D cube challenge
51:43 Comments on Apple ][ 3D cube challenge
1:02:26 My Nebula class What is Code?
1:04:15 CuriosityStream + Nebula bundle
1:27:49 Play The Oregon Trail game
2:05:25 Oh No!
2:08:47 Congratulations! You have made it to Oregon
2:19:04 Create repo for Oregon Trail port to p5.js
Links Discussed:
New Shorts
βΆοΈ YT https://www.youtube.com/shorts/Pfb9IPlP0hA
β° TikTok https://www.tiktok.com/@codingtrain
Featured Showcases:
π¦ https://twitter.com/thecodingtrain/
πΈ https://www.instagram.com/the.coding.train/
Coding Train website case study:
π https://designsystems.international/work/the-coding-train/
π 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://discord.gg/hPuGy2g
π 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
#p5js #oregontrail #game Coding Train Live: Riding the Oregon Trail 1](https://i.ytimg.com/vi/EzYDNydDUfc/mqdefault.jpg)






