|
6 | 6 | "nebulaSlug": "codingtrain-coding-challenge-181-image-stippling",
|
7 | 7 | "date": "2024-02-22",
|
8 | 8 | "languages": ["p5.js", "JavaScript"],
|
9 |
| - "topics": [], |
| 9 | + "topics": ["daulanay triangulation", "image stippling", "voronoi", "sweep algorithm", "Lloyd's algorithm"], |
10 | 10 | "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 | + ], |
13 | 32 | "codeExamples": [
|
14 | 33 | {
|
15 | 34 | "title": "Weighted Voronoi Stippling",
|
|
23 | 42 | "groupLinks": [
|
24 | 43 | {
|
25 | 44 | "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 | + ] |
27 | 77 | },
|
28 | 78 | {
|
29 | 79 | "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 | + ] |
31 | 88 | }
|
32 | 89 | ],
|
33 | 90 | "credits": [
|
|
0 commit comments