Skip to content

Commit 16d0768

Browse files
authored
starting asycn and await video (#1914)
* starting asycn and await video * fix video path * add images * whoops, images
1 parent 7c9ff23 commit 16d0768

File tree

7 files changed

+99
-0
lines changed

7 files changed

+99
-0
lines changed

β€Žcontent/tracks/index.jsonβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"robot-controllers",
1414
"discord-bots",
1515
"p5-tips-and-tricks",
16+
"p5js-2.0",
1617
"transformations-in-p5",
1718
"livestreams",
1819
"neural-networks",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"title": "p5.js 2.0",
3+
"description": "A collection of videos exploring the new features and capabilities introduced in p5.js 2.0, including loading with async and await, fonts and typography, custom shapes and curves, and more!",
4+
"videos": ["p5js-2.0/async-await", "livestreams/p5js-2.0"]
5+
}

β€Žcontent/videos/livestreams/p5js-2.0/index.jsonβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"topics": ["p5.js", "variable fonts"],
88
"canContribute": true,
99
"relatedChallenges": [],
10+
"canonicalTrack": "livestreams",
1011
"timestamps": [
1112
{ "time": "0:00:00", "title": "Waiting to Start" },
1213
{ "time": "0:05:24", "title": "Welcome to The Coding Train!" },
164 KB
Loading
1.06 MB
Loading
20.7 KB
Loading
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
"title": "p5.js 2.0: async and await",
3+
"description": "This video tackles one of the bigger changes in p5.js 2: loading data with async and await! Fear not, I'll cover how to transition from preload and callbacks in p5.js 1.0 to using promises with async/await in 2.0.",
4+
"videoId": "0Ad5Frf8NBM",
5+
"date": "2025-09-29",
6+
"languages": ["p5.js", "JavaScript"],
7+
"topics": ["async/await", "promises", "p5.js 2", "preload", "callbacks"],
8+
"canContribute": true,
9+
"relatedChallenges": [],
10+
"timestamps": [
11+
{ "time": "0:00:00", "title": "p5.js 2.0!" },
12+
{ "time": "0:03:00", "title": "Switching versions in the web editor" },
13+
{ "time": "0:05:02", "title": "Loading with p5.js 1" },
14+
{ "time": "0:06:11", "title": "Synchronous vs Asynchronous Code" },
15+
{ "time": "0:08:37", "title": "Promises!" },
16+
{ "time": "0:11:29", "title": "switching from preload to async setup()" },
17+
{ "time": "0:13:57", "title": "Loading with callbacks in p5.js 1.0" },
18+
{ "time": "0:17:15", "title": "Sequencing loading data in p5.js 1.0" },
19+
{ "time": "0:19:26", "title": "Sequencing with async and await in p5.js 2.0" },
20+
{ "time": "0:20:09", "title": "Creating a custom Async Function" },
21+
{ "time": "0:22:13", "title": "Thank you for watching!" }
22+
],
23+
"codeExamples": [
24+
{
25+
"title": "p5.js 2 - async and await",
26+
"description": "Basic example of loading an image with async and await.",
27+
"image": "choochoo.png",
28+
"urls": { "p5": "https://editor.p5js.org/codingtrain/sketches/Q6S38g0rS" }
29+
},
30+
{
31+
"title": "p5.js 2 - loading animation",
32+
"description": "How to use a custom async function to load data without blocking draw.",
33+
"image": "loading.png",
34+
"urls": { "p5": "https://editor.p5js.org/codingtrain/sketches/JLIxyHrkn" }
35+
},
36+
{
37+
"title": "p5.js 2 - loading in a sequence",
38+
"description": "How to load data with sequential calls with await.",
39+
"image": "dog.png",
40+
"urls": { "p5": "https://editor.p5js.org/codingtrain/sketches/lQxT7PTKC" }
41+
}
42+
],
43+
"groupLinks": [
44+
{
45+
"title": "References",
46+
"links": [
47+
{
48+
"icon": "πŸ“–",
49+
"title": "p5.js 2.0 Beta",
50+
"url": "https://beta.p5js.org/",
51+
"description": "The beta website for p5.js 2.0 with updated references and examples."
52+
},
53+
{
54+
"icon": "πŸ“–",
55+
"title": "p5.js 2.0",
56+
"url": "https://github.com/processing/p5.js/issues/7488",
57+
"description": "p5.js GitHub issue: Beta, Timeline, and Compatibility Addons"
58+
},
59+
{
60+
"icon": "πŸ“–",
61+
"title": "p5.js 2.0: You Are Here & How to Contribute!",
62+
"url": "https://discourse.processing.org/t/dev-updates-p5-js-2-0-you-are-here-how-to-contribute/46130",
63+
"description": "p5.js Discourse thread on the 2.0 release."
64+
},
65+
{
66+
"icon": "🎨",
67+
"title": "Dog API",
68+
"url": "https://dog.ceo/dog-api/",
69+
"description": "A public API for dog images used in the examples."
70+
}
71+
]
72+
},
73+
{
74+
"title": "Videos",
75+
"links": [
76+
{
77+
"icon": "πŸš‚",
78+
"title": "Promises Part 1",
79+
"url": "/tracks/topics-in-native-javascript/js/promises-part-1",
80+
"description": "Learn more about JavaScript Promises in depth."
81+
},
82+
{
83+
"icon": "πŸš‚",
84+
"title": "Promises Part 2",
85+
"url": "/tracks/topics-in-native-javascript/js/promises-part-2",
86+
"description": "Continue learning about JavaScript Promises."
87+
}
88+
]
89+
}
90+
],
91+
"credits": []
92+
}

0 commit comments

Comments
Β (0)