Skip to content

Commit 0e74c89

Browse files
committed
starting asycn and await video
1 parent b4f9541 commit 0e74c89

File tree

5 files changed

+96
-0
lines changed

5 files changed

+96
-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-transition", "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
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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+
"urls": { "p5": "https://editor.p5js.org/codingtrain/sketches/Q6S38g0rS" }
28+
},
29+
{
30+
"title": "p5.js 2 - loading animation",
31+
"description": "How to use a custom async function to load data without blocking draw.",
32+
"urls": { "p5": "https://editor.p5js.org/codingtrain/sketches/JLIxyHrkn" }
33+
},
34+
{
35+
"title": "p5.js 2 - loading in a sequence",
36+
"description": "How to load data with sequential calls with await.",
37+
"urls": { "p5": "https://editor.p5js.org/codingtrain/sketches/lQxT7PTKC" }
38+
}
39+
],
40+
"groupLinks": [
41+
{
42+
"title": "References",
43+
"links": [
44+
{
45+
"icon": "πŸ“–",
46+
"title": "p5.js 2.0 Beta",
47+
"url": "https://beta.p5js.org/",
48+
"description": "The beta website for p5.js 2.0 with updated references and examples."
49+
},
50+
{
51+
"icon": "πŸ“–",
52+
"title": "p5.js 2.0",
53+
"url": "https://github.com/processing/p5.js/issues/7488",
54+
"description": "p5.js GitHub issue: Beta, Timeline, and Compatibility Addons"
55+
},
56+
{
57+
"icon": "πŸ“–",
58+
"title": "p5.js 2.0: You Are Here & How to Contribute!",
59+
"url": "https://discourse.processing.org/t/dev-updates-p5-js-2-0-you-are-here-how-to-contribute/46130",
60+
"description": "p5.js Discourse thread on the 2.0 release."
61+
},
62+
{
63+
"icon": "🎨",
64+
"title": "Dog API",
65+
"url": "https://dog.ceo/dog-api/",
66+
"description": "A public API for dog images used in the examples."
67+
}
68+
]
69+
},
70+
{
71+
"title": "Videos",
72+
"links": [
73+
{
74+
"icon": "πŸš‚",
75+
"title": "Promises Part 1",
76+
"url": "/tracks/topics-in-native-javascript/js/promises-part-1",
77+
"description": "Learn more about JavaScript Promises in depth."
78+
},
79+
{
80+
"icon": "πŸš‚",
81+
"title": "Promises Part 2",
82+
"url": "/tracks/topics-in-native-javascript/js/promises-part-2",
83+
"description": "Continue learning about JavaScript Promises."
84+
}
85+
]
86+
}
87+
],
88+
"credits": []
89+
}

0 commit comments

Comments
Β (0)