Skip to content

Commit

Permalink
Merge pull request #1162 from dipamsen/more-p5
Browse files Browse the repository at this point in the history
Add videos to p5 tips and tricks
  • Loading branch information
shiffman authored Aug 28, 2023
2 parents 4e68f91 + 4023295 commit 7311417
Show file tree
Hide file tree
Showing 14 changed files with 135 additions and 11 deletions.
2 changes: 1 addition & 1 deletion content/tracks/side-tracks/p5-tips-and-tricks/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"title": "p5 Tips & Tricks",
"description": "A collection of tips and tricks that might come in handy when working in p5.",
"videos": ["more-p5/local-storage", "more-p5/github-pages-hosting", "more-p5/pixel-array"]
"videos": ["more-p5/local-storage", "more-p5/github-pages-hosting", "more-p5/pixel-array", "more-p5/custom-shapes", "more-p5/2d-arrays"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
{
"icon": "πŸŽ₯",
"title": "2D Arrays in JavaScript",
"url": "https://www.youtube.com/watch?v=OTNpiLUSiB4",
"description": "In this JavaScript Tutorial, I cover two-dimensional (2D) arrays in JavaScript. I demonstrate how to create, initialize, and use the arrays with nested for loops."
"url": "/tracks/p5-tips-and-tricks/more-p5/2d-arrays",
"description": "In this JavaScript tutorial, I cover two-dimensional (2D) arrays in JavaScript. I demonstrate how to create, initialize, and use the arrays with nested for loops."
},
{
"icon": "πŸ”΄",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
{
"icon": "πŸš‚",
"title": "What is OpenSimplex Noise?",
"url": "https://youtu.be/Lv9gyZZJPE0",
"url": "/tracks/noise/noise/open-simplex-noise",
"description": "Discussion on OpenSimplex noise in Processing (NOC 2)"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
{
"icon": "πŸŽ₯",
"title": "ml5.js Sound Classification",
"url": "https://youtu.be/cO4UP2dX944",
"url": "/tracks/ml5js-beginners-guide/ml5/10-sound-classification/1-sound-classification",
"description": "This video examines the new ml5.soundClassifier() function in the ml5.js library."
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
{
"icon": "πŸš‚",
"title": "TF-IDF",
"url": "https://youtu.be/RPMYV-eb6lI",
"url": "/challenges/40-word-counter",
"description": "In part 3 of the Word Counting Coding Challenge, I implement an algorithm known as TF-IDF (Term Frequency – Inverse Document Frequency)."
},
{
Expand Down
2 changes: 1 addition & 1 deletion content/videos/challenges/71-minesweeper/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
{
"icon": "πŸŽ₯",
"title": "2D Arrays in Javascript",
"url": "https://youtu.be/OTNpiLUSiB4",
"url": "/tracks/p5-tips-and-tricks/more-p5/2d-arrays",
"description": "In this JavaScript Tutorial, I cover two-dimensional (2D) arrays in JavaScript."
},
{
Expand Down
2 changes: 1 addition & 1 deletion content/videos/challenges/85-the-game-of-life/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
{
"icon": "πŸš‚",
"title": "2D Arrays in JavaScript",
"url": "https://www.youtube.com/watch?v=OTNpiLUSiB4",
"url": "/tracks/p5-tips-and-tricks/more-p5/2d-arrays",
"description": "In this video, I demonstrate how to create, initialize, and use the 2D arrays in JavaScript with nested for loops."
},
{
Expand Down
2 changes: 1 addition & 1 deletion content/videos/challenges/90-dithering/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
{
"icon": "πŸš‚",
"title": "My Video on 2D Arrays",
"url": "https://www.youtube.com/watch?v=OTNpiLUSiB4",
"url": "/tracks/p5-tips-and-tricks/more-p5/2d-arrays",
"description": "In this video, I demonstrate how to create, initialize, and use the arrays with nested for loops."
},
{
Expand Down
2 changes: 1 addition & 1 deletion content/videos/challenges/c5-marching-squares/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
{
"icon": "πŸŽ₯",
"title": "What is OpenSimplex Noise?",
"url": "https://www.youtube.com/watch?v=Lv9gyZZJPE0",
"url": "/tracks/noise/noise/open-simplex-noise",
"description": "Discussion of open simplex noise in processing."
},
{
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions content/videos/more-p5/2d-arrays/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"title": "2D Arrays in JavaScript",
"description": "In this JavaScript tutorial, I cover two-dimensional (2D) arrays in JavaScript. I demonstrate how to create, initialize, and use the arrays with nested for loops.",
"videoId": "OTNpiLUSiB4",
"date": "2016-07-18",
"languages": ["JavaScript", "p5.js"],
"topics": ["2d arrays", "array", "for loop"],
"canContribute": true,
"timestamps": [
{ "time": "0:00", "title": "Introduction" },
{ "time": "0:54", "title": "What is a 2D Array?" },
{ "time": "3:39", "title": "Code example" },
{ "time": "4:59", "title": "2D Arrays in JavaScript" },
{ "time": "7:13", "title": "How to create a 2D Array?" },
{ "time": "12:02", "title": "Suggestions" }
],
"codeExamples": [
{
"title": "2D Arrays",
"description": "Demonstration of using 2D arrays",
"image": "2d-arrays.png",
"urls": {
"p5": "https://editor.p5js.org/codingtrain/sketches/cOPZYGNSx"
}
}
],
"groupLinks": [
{
"title": "References",
"links": [
{
"icon": "πŸ”—",
"title": "2D Array in Processing",
"url": "https://www.processing.org/tutorials/2darray/",
"description": "Dan's 2D Array in Processing tutorial"
}
]
}
],
"credits": [
{
"title": "Editing",
"name": "Mathieu Blanchette"
},
{
"title": "Animations",
"name": "Jason Heglund"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 74 additions & 0 deletions content/videos/more-p5/custom-shapes/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"title": "Custom Shapes",
"description": "In this video, I look at how to draw \"custom\" shapes in p5.js, using, `beginShape()`, `endShape()`, `vertex()` and `curveVertex()`. Special thanks to Rune Madsen's Programming Design Systems!",
"videoId": "76fiD5DvzeQ",
"date": "2017-09-27",
"languages": ["JavaScript", "p5.js"],
"topics": ["custom shapes", "beginShape", "endShape", "vertex", "curveVertex"],
"canContribute": true,
"relatedChallenges": ["36-blobby"],
"timestamps": [
{ "time": "0:00", "title": "Introduction" },
{ "time": "0:57", "title": "What is a custom shape?" },
{ "time": "3:01", "title": "Code example" },
{ "time": "5:29", "title": "Using an algorithm to choose the vertices" },
{ "time": "9:37", "title": "Drawing custom curves" },
{ "time": "16:57", "title": "Recap" }
],
"codeExamples": [
{
"title": "Custom Shapes",
"description": "Demonstration of drawing custom shapes",
"image": "custom-shapes.png",
"urls": {
"p5": "https://editor.p5js.org/codingtrain/sketches/vE4Flwxh5"
}
}
],
"groupLinks": [
{
"title": "References",
"links": [
{
"icon": "πŸ”—",
"title": "Catmull-Rom spline",
"url": "https://en.wikipedia.org/wiki/Centripetal_Catmull%E2%80%93Rom_spline",
"description": "Catmull-Rom on Wikipedia"
},
{
"icon": "🎨",
"title": "Programming Design Systems",
"url": "https://programmingdesignsystems.com/introduction/",
"description": "Rune Madsen's Programming Design Systems"
},
{
"icon": "☁️",
"title": "Community Clouds",
"url": "https://github.com/CodingTrain/CommunityClouds",
"description": "Cloud Designs by the Coding Train Community"
}
]
},
{
"title": "Videos",
"links": [
{
"icon": "πŸš‚",
"title": "Polar to Cartesian Coordinates",
"url": "/tracks/the-nature-of-code-2/noc/3-angles/4-polar-coordinates",
"description": "This video takes a look at polar and cartesian coordinates."
}
]
}
],
"credits": [
{
"title": "Editing",
"name": "Mathieu Blanchette"
},
{
"title": "Animations",
"name": "Jason Heglund"
}
]
}
2 changes: 1 addition & 1 deletion content/videos/webgl/8-3d-custom-shapes/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"icon": "πŸš‚",
"title": "Custom Shapes in p5.js",
"description": "In this video, I look at how to draw \"custom\" shapes in p5.js, using beginShape(), endShape(), vertex(), and curveVertex().",
"url": "https://www.youtube.com/watch?v=76fiD5DvzeQ"
"url": "/tracks/p5-tips-and-tricks/more-p5/custom-shapes"
}
]
}
Expand Down

0 comments on commit 7311417

Please sign in to comment.