Skip to content

Commit 9af631b

Browse files
committed
remove stained glass movement
1 parent 7b6cf9e commit 9af631b

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

stained-glass/stained-glass.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@ const points = Array.from({ length: numPoints }, () => [
1212
Math.random() * height,
1313
]);
1414

15-
// Use a fixed t to get an interesting organic spread
16-
const t = 1.4;
17-
const movedPoints = points.map(([x, y], i) => [
18-
x + 1.5 * Math.sin(t + i * i),
19-
y + 2.0 * Math.cos(t + i * i),
20-
]);
21-
22-
const delaunay = d3.Delaunay.from(movedPoints);
15+
const delaunay = d3.Delaunay.from(points);
2316
const voronoi = delaunay.voronoi([0, 0, width, height]);
2417

2518
// A rich stained-glass palette

0 commit comments

Comments
 (0)