Skip to content

Instantly share code, notes, and snippets.

@christophermanning
christophermanning / README.md
Created December 2, 2012 06:14
Erdős–Rényi Force Directed Graph

Created by Christopher Manning

Summary

This creates a graph with the number of nodes you specify and random edges based on the probability selected. The number indicates how many edges are connected to that node. Red nodes are not connected to any other nodes.

Inspired by this tweet from @ChicagoCDO

Nodes are added to the graph along the path of an Archimedean spiral. This is more pleasing than adding nodes at random locations. This also prevents

@christophermanning
christophermanning / README.md
Created December 4, 2012 20:44
Spherical Force-Directed Layout

Created by Christopher Manning

Summary

Draws a force directed graph using svg:path and geo projections onto a sphere.

TODO

@christophermanning
christophermanning / README.md
Created December 10, 2012 07:10
Technology Delaunay Triangulation
@christophermanning
christophermanning / README.md
Created December 11, 2012 04:11
Sierpinski Chaos Game
@christophermanning
christophermanning / README.md
Last active October 14, 2015 01:17
Force-Directed Sierpinski Triangle

Created by Christopher Manning

Summary

This generates a Sierpinski Triangle graph using a force-directed layout.

Controls

  • Use the mousewheel to increase or decrease the iterations.
@christophermanning
christophermanning / README.md
Last active December 22, 2019 10:32 — forked from tmcw/index.html
Unknown Pleasures

Forked from Tom MacWright and updated by Christopher Manning

Summary

This adds simplex noise to the waves. The 3D noise uses the parameters x and y. z is a function of the velocity and frame from d3.timer.

Controls

  • Drag up and down to adjust the height of the noise
@christophermanning
christophermanning / README.md
Last active December 9, 2015 19:18
Simplex Noise Dots

Created by Christopher Manning

Controls

  • Drag left and right to adjust the width of the noise
  • Drag up and down to adjust the height of the noise
  • Use the mousewheel to increase or decrease the amplitude.

References

@christophermanning
christophermanning / README.md
Last active December 9, 2015 20:28
Simplex Noise Code 39 Barcode
@christophermanning
christophermanning / README.md
Created December 27, 2012 02:27
Simplex Noise QR code
@christophermanning
christophermanning / README.md
Last active December 10, 2015 07:38
SVG Self Dividing Line