Skip to content

Commit a55c4b3

Browse files
committed
Update index.json
1 parent b2df419 commit a55c4b3

File tree

1 file changed

+62
-5
lines changed
  • content/videos/challenges/181-image-stippling

1 file changed

+62
-5
lines changed

β€Žcontent/videos/challenges/181-image-stippling/index.json

Lines changed: 62 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,29 @@
66
"nebulaSlug": "codingtrain-coding-challenge-181-image-stippling",
77
"date": "2024-02-22",
88
"languages": ["p5.js", "JavaScript"],
9-
"topics": [],
9+
"topics": ["daulanay triangulation", "image stippling", "voronoi", "sweep algorithm", "Lloyd's algorithm"],
1010
"canContribute": true,
11-
"relatedChallenges": [],
12-
"timestamps": [{ "time": "0:00", "title": "Hello!" }],
11+
"relatedChallenges": ["c4-worley-noise", "33-poisson-disc-sampling"],
12+
"timestamps": [
13+
{ "time": "0:00", "title": "Hello!" },
14+
{ "time": "0:37", "title": "Delaunay triangulation" },
15+
{ "time": "2:31", "title": "d3-daulanay" },
16+
{ "time": "2:49", "title": "Start coding" },
17+
{ "time": "6:38", "title": "Explain the voronoi diagram" },
18+
{ "time": "9:17", "title": "Call the voronoi function on the delaunay object" },
19+
{ "time": "10:25", "title": "Things you could try with the Voronoi diagram" },
20+
{ "time": "10:56", "title": "Lloyd's alorithm" },
21+
{ "time": "12:07", "title": "Calculate the centroid of each polygon" },
22+
{ "time": "13:00", "title": "Convert generator to an array" },
23+
{ "time": "15:30", "title": "Calculate the area of a polygon" },
24+
{ "time": "16:45", "title": "Calculate the centroid x and y" },
25+
{ "time": "18:47", "title": "Stippling" },
26+
{ "time": "19:45", "title": "Draw dots based on brightness value of pixel in an image" },
27+
{ "time": "21:50", "title": "Find the weighted centroid" },
28+
{ "time": "24:51", "title": "Use delaunay.find(i,j) to find the index of the centroid" },
29+
{ "time": "27:52", "title": "Possible visualizations" },
30+
{ "time": "28:47", "title": "Outro" }
31+
],
1332
"codeExamples": [
1433
{
1534
"title": "Weighted Voronoi Stippling",
@@ -23,11 +42,49 @@
2342
"groupLinks": [
2443
{
2544
"title": "References",
26-
"links": []
45+
"links": [
46+
{
47+
"icon": "πŸ”—",
48+
"title": "d3-delaunay",
49+
"url": "https://d3js.org/d3-delaunay",
50+
"description": "Documentation for d3-delaunay"
51+
},
52+
{
53+
"icon": "πŸ”—",
54+
"title": "Weighted Voronoi Stippling",
55+
"url": "https://www.cs.ubc.ca/labs/imager/tr/2002/secord2002b/secord.2002b.pdf",
56+
"description": "Paper explaining how to generate stipple drawings from grayscale images using weighted centroidal Voronoi diagrams."
57+
},
58+
{
59+
"icon": "πŸ”—",
60+
"title": "Lloyd's algorithm",
61+
"url": "https://en.wikipedia.org/wiki/Lloyd%27s_algorithm",
62+
"description": "Wikipedia page discussing Lloyd's algorthm."
63+
},
64+
{
65+
"icon": "πŸ”—",
66+
"title": "Calculating The Area And Centroid Of A Polygon",
67+
"url": "https://lexrent.eu/wp-content/uploads/torza/artikel_groep_sub_2_docs/BYZ_3_Polygon-Area-and-Centroid.pdf",
68+
"description": "Paper by Paul Bourke that explains how to calculate the area and centroid of a polygon."
69+
},
70+
{
71+
"icon": "πŸ”—",
72+
"title": "Stippling",
73+
"url": "https://en.wikipedia.org/wiki/Stippling",
74+
"description": "Wikipedia page discussing stippling."
75+
}
76+
]
2777
},
2878
{
2979
"title": "Videos",
30-
"links": []
80+
"links": [
81+
{
82+
"icon": "πŸš‚",
83+
"title": "Pxiel Array",
84+
"url": "/tracks/pixels/more-p5/pixel-array",
85+
"description": "his video looks at how to access the pixels of an HTML5 canvas in p5.js."
86+
}
87+
]
3188
}
3289
],
3390
"credits": [

0 commit comments

Comments
Β (0)