Uploaded March 2026 | Updated November 2026, 5 days ago
Let's explore new typography features in p5.js 2.0! In this video, I cover how to work with variable fonts, convert text to 3D models with textModel(), extract contours with textContours(), and control the detail of your typography with sampleFactor and simplifyThreshold. Code: thecodingtrain.com/tracks/p5js-2.0/p5js-2.0/typography
π Watch this video ad-free on Nebula nebula.tv/videos/codingtrain-what-the-font
p5.js Web Editor Sketches:
πΉοΈ Variable Font Weights: editor.p5js.org/codingtrain/sketches/9SZYb2vX3
πΉοΈ textContours(): editor.p5js.org/codingtrain/sketches/ffDf3LmKi
πΉοΈ textModel() - 3D Text: editor.p5js.org/codingtrain/sketches/Z4DkmlvyM
πΉοΈ Coding Challenge 59 - p5.js 2.0: editor.p5js.org/codingtrain/sketches/cetWD9rvY
πΉοΈ One Letter, Two Contours: editor.p5js.org/codingtrain/sketches/2xr1TAmXK
πΉοΈ sampleFactor Diagram: editor.p5js.org/codingtrain/sketches/c23YgfIhC
πΉοΈ simplifyThreshold Demo: editor.p5js.org/codingtrain/sketches/9_CnA7lrl
π₯ Previous: youtu.be/25omXt_OjD4
π₯ Next: youtu.be/1KqQeqZ3R9Y
References:
π p5.js 2.0: You Are Here & How to Contribute!: discourse.processing.org/t/dev-updates-p5-js-2-0-you-are-here-how-to-contribute/46130
π€ Google Fonts: fonts.google.com
π Typography questions and possible bugs (Issue #8177): github.com/processing/p5.js/issues/8177
π Reference errors: textToContours() and textToModel() (Issue #8623): github.com/processing/p5.js/issues/8623
π loadFont() Reference: beta.p5js.org/reference/p5/loadFont
π textWeight() Reference: beta.p5js.org/reference/p5/textWeight
π textContours() Reference: beta.p5js.org/reference/p5/textContours
π textModel() Reference: beta.p5js.org/reference/p5/textModel
Videos:
π₯ youtu.be/1KqQeqZ3R9Y
π youtu.be/0Ad5Frf8NBM
π youtu.be/25omXt_OjD4
π youtu.be/o9sgjuh-CBM
π― youtu.be/4hA7G3gup-4
Related Coding Challenges:
π youtu.be/4hA7G3gup-4
Timestamps:
0:00 Welcome!
0:49 Finding Fonts (Google Fonts)
1:01 Loading Fonts with Async/Await
2:30 Variable Fonts
3:17 textWeight()
4:03 Animated Text Weight
4:31 Coding Challenge 59 - Steering Behaviors
5:15 textContours() Introduction
6:00 sampleFactor and simplifyThreshold
9:00 sampleFactor Explained
12:00 simplifyThreshold Explained
14:00 Updating Challenge 59 to p5.js 2.0
15:00 Angle Property of Contours
17:00 textModel() for 3D Text
19:00 Extrude Option
20:11 Goodbye!
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
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ 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
#typography #fonts #text #p5js2 #variablefonts #3dtext #textcontours #p5js #javascript
Let's explore new typography features in p5.js 2.0! In this video, I cover how to work with variable fonts, convert text to 3D models with textModel(), extract contours with textContours(), and control the detail of your typography with sampleFactor and simplifyThreshold. Code: thecodingtrain.com/tracks/p5js-2.0/p5js-2.0/typography
π Watch this video ad-free on Nebula nebula.tv/videos/codingtrain-what-the-font
p5.js Web Editor Sketches:
πΉοΈ Variable Font Weights: editor.p5js.org/codingtrain/sketches/9SZYb2vX3
πΉοΈ textContours(): editor.p5js.org/codingtrain/sketches/ffDf3LmKi
πΉοΈ textModel() - 3D Text: editor.p5js.org/codingtrain/sketches/Z4DkmlvyM
πΉοΈ Coding Challenge 59 - p5.js 2.0: editor.p5js.org/codingtrain/sketches/cetWD9rvY
πΉοΈ One Letter, Two Contours: editor.p5js.org/codingtrain/sketches/2xr1TAmXK
πΉοΈ sampleFactor Diagram: editor.p5js.org/codingtrain/sketches/c23YgfIhC
πΉοΈ simplifyThreshold Demo: editor.p5js.org/codingtrain/sketches/9_CnA7lrl
π₯ Previous: youtu.be/25omXt_OjD4
π₯ Next: youtu.be/1KqQeqZ3R9Y
References:
π p5.js 2.0: You Are Here & How to Contribute!: discourse.processing.org/t/dev-updates-p5-js-2-0-you-are-here-how-to-contribute/46130
π€ Google Fonts: fonts.google.com
π Typography questions and possible bugs (Issue #8177): github.com/processing/p5.js/issues/8177
π Reference errors: textToContours() and textToModel() (Issue #8623): github.com/processing/p5.js/issues/8623
π loadFont() Reference: beta.p5js.org/reference/p5/loadFont
π textWeight() Reference: beta.p5js.org/reference/p5/textWeight
π textContours() Reference: beta.p5js.org/reference/p5/textContours
π textModel() Reference: beta.p5js.org/reference/p5/textModel
Videos:
π₯ youtu.be/1KqQeqZ3R9Y
π youtu.be/0Ad5Frf8NBM
π youtu.be/25omXt_OjD4
π youtu.be/o9sgjuh-CBM
π― youtu.be/4hA7G3gup-4
Related Coding Challenges:
π youtu.be/4hA7G3gup-4
Timestamps:
0:00 Welcome!
0:49 Finding Fonts (Google Fonts)
1:01 Loading Fonts with Async/Await
2:30 Variable Fonts
3:17 textWeight()
4:03 Animated Text Weight
4:31 Coding Challenge 59 - Steering Behaviors
5:15 textContours() Introduction
6:00 sampleFactor and simplifyThreshold
9:00 sampleFactor Explained
12:00 simplifyThreshold Explained
14:00 Updating Challenge 59 to p5.js 2.0
15:00 Angle Property of Contours
17:00 textModel() for 3D Text
19:00 Extrude Option
20:11 Goodbye!
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
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ 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
#typography #fonts #text #p5js2 #variablefonts #3dtext #textcontours #p5js #javascript






![Playing YOUR Versions of the Apple ][ Snake Game! - Showcase 1 #creativecoding #programming #shorts
For the first episode of this series, I react to a few submissions from the AppleSoft BASIC Snake Game Passenger Showcase. Next stop: Wave Function Collapse Showcase arriving next week!
π₯ BASIC Snake Game: https://youtu.be/7r83N3c2kPw
π¨ https://thecodingtrain.com/challenges/173-snake-applesoft-basic
π₯ WFC: https://youtu.be/rI_y2GAlQFM
π¨ https://thecodingtrain.com/challenges/171-wave-function-collapse
To learn how to submit yours, visit The Coding Train website and follow the guide: https://thecodingtrain.com/guides/passenger-showcase-guide
π Website: http://thecodingtrain.com/
πΎ Share Your Creation! https://thecodingtrain.com/Guides/community-contribution-guide.html
π© Suggest Topics: https://github.com/CodingTrain/Rainbow-Topics
π‘ GitHub: https://github.com/CodingTrain
π¬ Discord: https://discord.gg/hPuGy2g
π Membership: http://youtube.com/thecodingtrain/join
π Store: https://standard.tv/codingtrain
π Books: https://www.amazon.com/shop/thecodingtrain
ποΈ 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 Playing YOUR Versions of the Apple ][ Snake Game! - Showcase 1 #creativecoding #programming #shorts](https://i.ytimg.com/vi/fAyGmUeNIFQ/mqdefault.jpg)



