Skip to content

Commit b4dc270

Browse files
committed
Add video metadata and image of code example
1 parent c890df5 commit b4dc270

File tree

2 files changed

+31
-51
lines changed

2 files changed

+31
-51
lines changed
Loading

content/videos/noc/perlin/perlin-noise-2d/index.json

Lines changed: 31 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,49 @@
11
{
2-
"title": "Video title",
3-
"description": "Video description",
4-
"videoNumber": "Video number",
5-
"videoId": "YouTube video ID",
6-
"date": "YYYY-MM-DD",
7-
"languages": ["language1", "language2"],
8-
"topics": ["topic1", "topic2"],
2+
"title": "I.5: Perlin Noise in Two Dimensions (p5.js)",
3+
"description": "In the fifth part of my Perlin Noise Tutorial, I demonstrate how to use two-dimensional Perlin noise in a p5.js sketch.",
4+
"videoId": "ikwNrFvnL3g",
5+
"date": "2016-06-24",
6+
"languages": ["p5.js", "JavaScript"],
7+
"topics": ["For beginners"],
98
"canContribute": true,
10-
"relatedChallenges": ["number-challenge-1", "number-challenge-2"],
119
"timestamps": [
12-
{ "time": "0:00", "title": "Title 1" },
13-
{ "time": "1:26", "title": "Title 2" },
14-
{ "time": "3:40", "title": "Title 3" }
15-
],
16-
"parts": [
17-
{
18-
"title": "Part 1 - Specific Title for Part 1",
19-
"videoId": "YouTube video ID for Part 1",
20-
"timestamps": [
21-
{ "time": "0:00", "title": "Only for multi-part challenges" },
22-
{ "time": "1:26", "title": "Remove this 'parts' section for single-part challenges" }
23-
]
24-
},
25-
{
26-
"title": "Part 2 - Specific Title for Part 2"
27-
"videoId": "YouTube video ID for Part 2",
28-
"timestamps": [
29-
{ "time": "0:00", "title": "Title 1" },
30-
{ "time": "1:26", "title": "Title 2" }
31-
]
32-
}
10+
{ "time": "0:26", "title": "Graph of Perlin Noise in One Dimension" },
11+
{ "time": "3:49", "title": "Pixel Array" },
12+
{ "time": "6:48", "title": "Perlin Noise" }
3313
],
14+
3415
"codeExamples": [
3516
{
36-
"title": "Code example 1 title",
37-
"description": "Code example 1 description",
38-
"image": "image1.png",
17+
"title": "Perlin Noise in 2D",
18+
"description": "Using 2D perlin noise to create a 2D noise field",
19+
"image": "perlin2d.png",
3920
"urls": {
40-
"p5": "url to p5 editor or code",
41-
"processing": "url to processing sketch",
42-
"other": "url to other source, like GitHub"
43-
}
44-
},
45-
{
46-
"title": "Code example 2 title",
47-
"description": "Code example 2 description",
48-
"image": "image2.png",
49-
"urls": {
50-
"other": "url to other source, like GitHub"
51-
}
21+
"p5": "https://editor.p5js.org/codingtrain/sketches/2_hBcOBrF" }
5222
}
5323
],
5424
"groupLinks": [
5525
{
56-
"title": "Group of links title",
26+
"title": "References",
5727
"links": [
5828
{
59-
"title": "Link 1 title",
60-
"url": "link 1 url",
61-
"description": "description of content linked"
29+
"title": "noise()",
30+
"url": "https://p5js.org/reference/#/p5/noise",
31+
"description": "p5.js reference for noise()"
32+
},
33+
{
34+
"title": "andom()",
35+
"url": "https://p5js.org/reference/#/p5/random",
36+
"description": "p5.js reference for random()"
37+
},
38+
{
39+
"title": "The Nature of Code",
40+
"url": "https://natureofcode.com/",
41+
"description": "The Nature of Code - online book by Daniel Shiffman"
6242
},
6343
{
64-
"title": "Link 2 title",
65-
"url": "link 2 url",
66-
"description": "description of content linked"
44+
"title": "The Nature of Code Examples p5.js",
45+
"url": "https://github.com/nature-of-code/noc-examples-p5.js",
46+
"description": "Repository for example p5.js code from the Nature of Code book"
6747
}
6848
]
6949
}

0 commit comments

Comments
 (0)