Skip to content

Commit 2616337

Browse files
authored
Merge branch 'main' into PR/challenge-73
2 parents f95df35 + 5087674 commit 2616337

File tree

60 files changed

+486
-20
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+486
-20
lines changed

content/pages/challenges/index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"title": "Challenges",
33
"description": "Ready to apply what you’ve learned in the Tracks? Try a Challenge! These one-off project videos build off concepts introduced in Tracks and may have prerequisites (listed on the challenge page itself).",
44
"featuredText": "Featured Challenge:",
5-
"featuredChallenge": "184-elastic-collisions"
5+
"featuredChallenge": "185-dragon-curve"
66
}

content/pages/homepage/index.json

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
"title": "Challenges",
3232
"description": "Watch Dan take on Coding Challenges in p5.js and Processing. The challenge topics include algorithmic art, machine learning, simulation, generative poetry, and more.",
3333
"featured": [
34-
"184-elastic-collisions",
35-
"64-kinematics",
36-
"125-fourier-series",
37-
"28-metaballs",
38-
"116-lissajous-curve-table",
39-
"170-monty-hall-problem"
34+
"185-dragon-curve",
35+
"175-3D-cube-applesoft-basic",
36+
"160-spring-forces",
37+
"113-4d-hypercube-aka-tesseract",
38+
"99-neural-network-color-predictor",
39+
"85-the-game-of-life"
4040
],
4141
"challengesCta": {
4242
"text": "ready to explore? try a challenge!",
@@ -46,16 +46,7 @@
4646
},
4747
"passengerShowcase": {
4848
"title": "Passenger showcase highlights",
49-
"featured": [
50-
"challenges/160-spring-forces/showcase/contribution-1717812105.json",
51-
"noc/4-particles/1-particle-system/showcase/contribution-1716063723.json",
52-
"challenges/183-mathematical-marbling/showcase/contribution-5.json",
53-
"challenges/183-mathematical-marbling/showcase/contribution-1719747682.json",
54-
"challenges/93-double-pendulum/showcase/contribution-1717095241.json",
55-
"code/2-variables/5-map/showcase/contribution-1719881442.json",
56-
"noc/3-angles/7-additive-waves/showcase/contribution-1719068587.json",
57-
"challenges/10-dfs-maze-generator/showcase/contribution-1719932734.json"
58-
],
49+
"featured": ["challenges/184-elastic-collisions/showcase/contribution-1720963615.json", "challenges/184-elastic-collisions/showcase/contribution-1720958474.json", "noc/4-particles/4-particle-textures/showcase/contribution-1721161051.json", "physics-libraries/box2d/12-collision-events/showcase/contribution-1722000424.json", "challenges/14-fractal-trees-recursive/showcase/contribution-1723666252.json", "challenges/10-dfs-maze-generator/showcase/contribution-1720952091.json", "challenges/184-elastic-collisions/showcase/contribution-1721016798.json", "challenges/100-neuroevolution-flappy-bird/showcase/contribution-1720945862.json"],
5950
"showcaseCta": {
6051
"text": "Want to see more?",
6152
"buttonText": "Browse the full showcase",

content/tracks/main-tracks/ml5js-beginners-guide/index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"chapters": [
77
{
88
"title": "Introduction",
9-
"videos": ["ml5/0-introduction/1-introduction"]
9+
"videos": ["ml5/0-introduction/1-introduction", "ml5/0-introduction/patt-vira"]
1010
},
1111
{
1212
"title": "Classification",

content/tracks/main-tracks/the-nature-of-code-2/index.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191
"challenges/77-recursion",
9292
"challenges/14-fractal-trees-recursive",
9393
"challenges/15-object-oriented-fractal-trees",
94-
"challenges/16-l-system-fractal-trees"
94+
"challenges/16-l-system-fractal-trees",
95+
"challenges/185-dragon-curve"
9596
]
9697
},
9798
{

content/tracks/side-tracks/livestreams/index.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"title": "Coding Train Live!",
33
"description": "This side track is a collection of select livestreams.",
44
"videos": [
5+
"livestreams/page-not-found",
56
"livestreams/creative_coding_ai_agent",
67
"livestreams/shiffbot",
78
"livestreams/decade-of-code",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"title": "pathfinding and maze generator",
3+
"author": {
4+
"name": "Bart De Meyere",
5+
"instagram": "https://www.instagram.com/bdm_80/"
6+
},
7+
"url": "https://bartdemeyere.github.io/pathfinding/",
8+
"submittedOn": "2024-07-19T16:17:24.691Z",
9+
"socialPermission": false
10+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"title": "An Autonomous Agent Choreo",
3+
"author": {
4+
"name": "Toni Mitjanit",
5+
"url": "http://www.capsadetrons.com",
6+
"twitter": "https://x.com/CoderSpaghetti",
7+
"instagram": "https://www.instagram.com/toni.mitjanit"
8+
},
9+
"url": "http://www.capsadetrons.com/project/aaac/",
10+
"submittedOn": "2024-07-22T15:55:14.867Z",
11+
"socialPermission": true
12+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"title": "Growing Tree",
3+
"author": {
4+
"name": "Magnetar"
5+
},
6+
"url": "https://editor.p5js.org/kevin.moninbareil/sketches/WF6EZXNo9",
7+
"submittedOn": "2024-08-14T20:10:52.866Z",
8+
"socialPermission": true
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"title": "L-System Generator with Shapes",
3+
"author": {
4+
"name": "Kathy McGuiness"
5+
},
6+
"url": "https://editor.p5js.org/kfahn/sketches/B_P7q5oG_",
7+
"submittedOn": "2024-08-09T22:42:44.780Z",
8+
"socialPermission": true
9+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"title": "Wave Function Map Creation",
3+
"author": {
4+
"name": "Sounak Dey",
5+
"twitter": "https://twitter.com/DragoonSd4"
6+
},
7+
"url": "https://github.com/Dragoon4002/wave_function_collapse_simple",
8+
"submittedOn": "2024-08-05T20:11:58.398Z",
9+
"socialPermission": true
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"title": "HGR BOUNCING BALL",
3+
"author": {
4+
"name": "Lance",
5+
"url": "https://www.lancecoons.com/"
6+
},
7+
"url": "https://github.com/lanc12/HGR_BOUNCE_BALL/blob/main/basic_program(2).txt",
8+
"submittedOn": "2024-08-11T13:28:34.974Z",
9+
"socialPermission": true
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"title": "bubbleshooter",
3+
"author": {
4+
"name": "Bart De Meyere",
5+
"instagram": "https://www.instagram.com/bdm_80/"
6+
},
7+
"url": "https://bartdemeyere.github.io/bubbleshooter/",
8+
"submittedOn": "2024-08-17T11:06:54.574Z",
9+
"socialPermission": true
10+
}
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"title": "Dragon Curve",
3+
"videoNumber": "185",
4+
"description": "The Dragon Curve fractal is created by repeatedly folding a strip of paper in half, then unfolding it to form a curve. In this challenge, I attempt to code an animation of the Dragon Curve forming with p5.js in JavaScript.",
5+
"videoId": "MazpwQNdJYQ",
6+
"nebulaSlug": "codingtrain-coding-challenge-184-dragon-curve",
7+
"date": "2024-08-18",
8+
"languages": ["p5.js", "JavaScript"],
9+
"topics": ["fractals", "dragon curve", "Nature of Code"],
10+
"canContribute": true,
11+
"relatedChallenges": [
12+
"14-fractal-trees-recursive",
13+
"16-l-system-fractal-trees",
14+
"77-recursion",
15+
"121-logo-interpreter",
16+
"c3-hilbert-curve"
17+
],
18+
"timestamps": [
19+
{ "time": "00:00", "title": "Introduction" },
20+
{ "time": "00:36", "title": "The Nature of Code book" },
21+
{ "time": "01:43", "title": "Explain algorithm" },
22+
{ "time": "03:38", "title": "Start coding" },
23+
{ "time": "05:05", "title": "Write rotate function" },
24+
{ "time": "07:05", "title": "Rotate all the segments" },
25+
{ "time": "11:30", "title": "We have the dragon curve!" },
26+
{ "time": "12:00", "title": "Add animation" },
27+
{ "time": "16:31", "title": "Add the starting positions for a and b" },
28+
{ "time": "21:43", "title": "Scale the lines" },
29+
{ "time": "24:08", "title": "Add a nextGeneration() function" },
30+
{ "time": "25:16", "title": "The reduction ratio" },
31+
{ "time": "26:44", "title": "Target zoom" },
32+
{ "time": "28:57", "title": "Challenge complete!" },
33+
{ "time": "29:57", "title": "What can you do?" },
34+
{ "time": "30:25", "title": "Outro" }
35+
],
36+
"codeExamples": [
37+
{
38+
"title": "Dragon curve animation",
39+
"description": "Animation of the dragon curve.",
40+
"image": "img1.jpg",
41+
"urls": {
42+
"p5": "https://editor.p5js.org/codingtrain/sketches/LXDsoCSZs"
43+
}
44+
},
45+
{
46+
"title": "Dragon curve color variation",
47+
"description": "Dragon curve with color rendered with an L-system",
48+
"image": "img2.jpg",
49+
"urls": {
50+
"p5": "https://editor.p5js.org/codingtrain/sketches/7nNd-f7iY"
51+
}
52+
},
53+
{
54+
"title": "Dragon curve noise variation",
55+
"description": "Dragon curve with random noise",
56+
"image": "img3.jpg",
57+
"urls": {
58+
"p5": "https://editor.p5js.org/codingtrain/sketches/7r7ZIE4dc"
59+
}
60+
}
61+
],
62+
"groupLinks": [
63+
{
64+
"title": "References",
65+
"links": [
66+
{
67+
"icon": "📕",
68+
"title": "The Nature of Code",
69+
"url": "https://natureofcode.com/",
70+
"description": "The Nature of Code book (2024 p5.js edition)"
71+
},
72+
{
73+
"icon": "🛒",
74+
"title": "Nature of Code shop",
75+
"url": "https://store.natureofcode.com/products/the-nature-of-code",
76+
"description": "The Nature of Code book (2024 p5.js edition) is now available for purchase!"
77+
},
78+
{
79+
"icon": "🔗",
80+
"title": "Dragon Curve",
81+
"url": "https://en.wikipedia.org/wiki/Dragon_curve",
82+
"description": "Wikipedia page discussing the construction and properties of the Dragon curve."
83+
},
84+
{
85+
"icon": "🔗",
86+
"title": "concat() function",
87+
"url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat",
88+
"description": "Reference for the concat function."
89+
}
90+
]
91+
},
92+
{
93+
"title": "Videos",
94+
"links": [
95+
{
96+
"icon": "🎥",
97+
"title": "Unfolding the Dragon.",
98+
"url": "https://youtu.be/UBuPWdSbyf8",
99+
"description": "Dragon Curve unfolding animation rendered in Cinema 4D."
100+
},
101+
{
102+
"icon": "🎥",
103+
"title": "Dragon Curve - Numberphile",
104+
"url": "https://www.youtube.com/watch?v=wCyC-K_PnRY",
105+
"description": "Beautiful Dragon Curves, Fractals and Jurassic Park. Featuring Rob Eastaway."
106+
}
107+
]
108+
}
109+
],
110+
"credits": [
111+
{
112+
"title": "Editing",
113+
"name": "Mathieu Blanchette"
114+
},
115+
{
116+
"title": "Animations",
117+
"name": "Jason Heglund"
118+
}
119+
]
120+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"title": "Optimized dragon curve",
3+
"author": {
4+
"name": "Mamazu",
5+
"url": "https://github.com/mamazu/"
6+
},
7+
"url": "https://editor.p5js.org/mamazu1995/sketches/xyqzQnuGQ",
8+
"submittedOn": "2024-08-18T18:32:25.841Z",
9+
"socialPermission": true
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"title": "High Performance Spiral",
3+
"author": {
4+
"name": "RedPug"
5+
},
6+
"url": "https://editor.p5js.org/RedPug/sketches/IPfZRhagK",
7+
"submittedOn": "2024-08-18T23:10:08.882Z",
8+
"socialPermission": true
9+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"title": "Unfolding the Golden Ratio Dragon Curve",
3+
"author": {
4+
"name": "Juan Carlos Ponce Campuzano",
5+
"url": "https://www.dynamicmath.xyz/",
6+
"twitter": "https://x.com/jcponcemath"
7+
},
8+
"url": "https://editor.p5js.org/jcponce/sketches/rwgWBBwfL",
9+
"submittedOn": "2024-08-19T09:33:10.992Z",
10+
"socialPermission": true
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"title": "Glowing Golden Ratio Dragon Curve",
3+
"author": {
4+
"name": "Juan Carlos Ponce Campuzano",
5+
"url": "https://www.dynamicmath.xyz/",
6+
"twitter": "https://x.com/jcponcemath"
7+
},
8+
"url": "https://www.dynamicmath.xyz/threejs/dodecahedron-fractal/",
9+
"submittedOn": "2024-08-19T09:36:18.062Z",
10+
"socialPermission": true
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"title": "Simple Implementation",
3+
"author": {
4+
"name": "Baipyrus",
5+
"url": "https://baipyr.us/",
6+
"twitter": "Baipyrus"
7+
},
8+
"url": "https://editor.p5js.org/Baipyrus/sketches/BGtBlIvI3",
9+
"submittedOn": "2024-08-19T18:59:38.977Z",
10+
"socialPermission": true
11+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"title": "Buffered Animation",
3+
"author": {
4+
"name": "Giorgos Dim"
5+
},
6+
"url": "https://editor.p5js.org/giorgosdim/sketches/zvZLteLag",
7+
"submittedOn": "2024-08-20T08:23:21.695Z",
8+
"socialPermission": true
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"title": "Dragon Heart",
3+
"url": "https://editor.p5js.org/kfahn/sketches/bKx0DvTE7",
4+
"author": {
5+
"name": "Kathy McGuiness",
6+
"url": ""
7+
},
8+
"submittedOn": "2024-08-18"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"title": "Easy implementation of Spacing ( without storing levels )",
3+
"author": {
4+
"name": "abhiram"
5+
},
6+
"url": "https://editor.p5js.org/dabblu/full/opbQO5sh8",
7+
"submittedOn": "2024-07-18T21:08:17.107Z",
8+
"socialPermission": true
9+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"title": "10Print (pygame port)",
3+
"author": {
4+
"name": "Kevin Michael",
5+
"twitter": "virtualixid",
6+
"instagram": "virtualixblogs"
7+
},
8+
"url": "https://kevinmichaelsn.github.io/10printpy",
9+
"submittedOn": "2024-07-27T09:08:14.804Z",
10+
"socialPermission": true
11+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"title": "Conway's Fireworks",
3+
"author": {
4+
"name": "Thomas Countz",
5+
"url": "https://thomascountz.com"
6+
},
7+
"url": "https://editor.p5js.org/Thomascountz/sketches/4BDSYHnnO",
8+
"submittedOn": "2024-07-18T23:32:14.295Z",
9+
"socialPermission": true
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"title": "Padovan ",
3+
"author": {
4+
"name": "Eltayeb",
5+
"instagram": "Eltvyebta "
6+
},
7+
"url": "https://editor.p5js.org/eltayebmd/sketches/74lSen5Wy",
8+
"submittedOn": "2024-08-01T22:11:49.804Z",
9+
"socialPermission": true
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"title": "Paint Board (Random paint)",
3+
"author": {
4+
"name": "RAHUL KUMAR"
5+
},
6+
"url": "https://editor.p5js.org/rahulkumaronlinehere/sketches/KmcI3S9yZ",
7+
"submittedOn": "2024-07-22T12:02:27.766Z",
8+
"socialPermission": true
9+
}

0 commit comments

Comments
 (0)