Platform
Resources
Pricing
Sign in
Get started
Fil
Vocateur.
Workspace
Fork
Published
2 collections
By
Fil
Edited
Mar 14, 2022
1 fork
Importers
25 stars
Algorithms
Hello, A5
Chandrupatla’s root-finding method
Sidi’s root-finding method
Regular numbers
DruidJS worker
Natural breaks
Distance to a segment
Ray out of a convex hull
Word Tour: 40k words and their friends
Hello, @thi.ng/grid-iterators
Head/tail breaks
Pseudo-blue noise shader
How fast does walk-on-spheres converge?
AoC 12: shortest path under constraints
KDE estimation
Plot: Correlation heatmap
Poisson Finish 2
Poisson disk sampling functions
WoS with transport
Simple and surprising sort
Local median
Time series topological subsampling
Union-Find
Level set experiment 1
Mean value coordinates
Poisson potential
Middle-square
World of squares (spherical)
World of squares
Largest Inscribed Square
Hello, PyWavelets
Geothmetic meandian
Hello, Reorder.js
Geometric Median
Image FFT
Transport to a map
Disc Transport
TP3: Power Diagram and Semi-Discrete Optimal Transport
The blue wave
Hello, genetic-js
Sliced Optimal Transport
DruidJS
Self-Organizing Maps meet Delaunay
Hello, polygon-clipping
seedrandom, minimal
Walk on Spheres 2
Walk on Spheres
Hello, Autoencoder
Kaprekar’s number
VoronoiMap2D
Hello, ccwt.js
Polygon Triangulation
Quantile.invert?
Linear congruential generator
Hue blur
Needle in a haystack
Moving average blur
Apollo 11 implementation of trigonometric functions, by Margaret H. Hamilton (march 1969)
2D curves intersection
The 2D approximate Newton-Raphson method
Inverting Lee’s Tetrahedral projection
Linde–Buzo–Gray stippling
Mean shift clustering with kd-tree
2D point distributions
Shortest path
Kahan Summation
Hello, delatin
Dijkstra’s algorithm in gpu.js
Lloyd’s relaxation on a graph
Manhattan Diameter
Manhattan Voronoi
Mobility landscapes — an introduction
Dijkstra’s shortest-path tree
H3 oddities
Protein Matrix
Convex Spectral Weights
Sort stuff by similarity
Kriging
Delaunay.findTriangle
n-dimensions binning?
Travelling with a self-organizing map
UMAP-o-Matic
MNIST & UMAP-js
Hello UMAP-js
Mean shift clustering
Levenshtein transition
Rd quasi-random sequences
Automated label placement (countries)
Phyllotaxis explained
Motionrugs
Planar hull (Andrew’s monotone chain algorithm)
South Africa’s medial axis
Travelling salesperson approximation with t-SNE
Distance to shore
Worker
ngraph: pagerank, louvain…
t-SNE Voronoi
Cloud Contours
Circular function drawing
Kruskal Maze
Mycelium
Travelling salesperson approximation on the globe, with t-SNE
tsne.js
tsne.js & worker
Also listed in…
Voronoi
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
polygon
=
d3
.
json
(
`https://raw.githubusercontent.com/LingDong-/interesting-polygon-archive/master/json/${
poly
}.json`
)
Insert cell
positions
=
polygon
.
flat
(
1
)
Insert cell
constrains
=
{
let
z
=
0
;
return
polygon
.
map
(
function
(
ring
,
i
)
{
const
c
=
ring
.
map
(
(
d
,
i
)
=>
[
z
+
i
,
z
+
(
(
i
+
1
)
%
ring
.
length
)
]
)
;
z
+=
ring
.
length
;
return
c
;
}
)
.
flat
(
)
;
}
Insert cell
constrained
=
{
const
del
=
d3
.
Delaunay
.
from
(
positions
)
;
const
con
=
new
Constrainautor
(
del
.
_delaunator
)
;
con
.
constrainAll
(
constrains
)
;
return
del
;
}
Insert cell
function
holedPolygonContains
(
polygon
,
c
)
{
return
(
d3
.
polygonContains
(
polygon
[
0
]
,
c
)
&&
!
polygon
.
slice
(
1
)
.
some
(
ring
=>
d3
.
polygonContains
(
ring
,
c
)
)
)
;
}
Insert cell
d3
=
require
(
"d3@7"
)
Insert cell
Constrainautor
=
require
(
"@kninnug/constrainautor"
)
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Listed in...
Voronoi
Fil
Algorithms
Fil
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
chart
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
poly
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
show_delaunay
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
polygon
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
positions
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
constrains
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
constrained
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
holedPolygonContains
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Constrainautor
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML