Skip to content

Instantly share code, notes, and snippets.

View bumbeishvili's full-sized avatar
🏠
Working from home

David Bumbeishvili bumbeishvili

🏠
Working from home
View GitHub Profile
@bumbeishvili
bumbeishvili / .block
Created February 18, 2018 12:21 — forked from rveciana/.block
raster-marching-squares and leaflet
license: mit
@bumbeishvili
bumbeishvili / README.md
Created February 18, 2018 12:18 — forked from rveciana/README.md
Circles bouncing inside an SVG path

Example for the Stackoverflow question: How can I contain D3 JS animation within a container

The balls use a modified version of the D3.js Force Layout. Parts of the code, such as the collision function are taken from Mike Bostock's example Multi-Foci Force Layout.

The example lacks of a method to avoid the leak of circles when the collision algorithm and the container object detection act together.

@bumbeishvili
bumbeishvili / .block
Created February 18, 2018 06:23
Sankey Layout Alignment
license: mit
@bumbeishvili
bumbeishvili / .block
Created February 18, 2018 06:20
Overlapping Sankey links
license: mit
@bumbeishvili
bumbeishvili / index.html
Created February 17, 2018 12:24 — forked from feyderm/index.html
Geographic, interactive hexbin
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src = "https://feyderm.github.io/d3/d3.js"></script>
<script src = "https://feyderm.github.io/d3/hexbin/hexbin.js"></script>
<script src = "https://feyderm.github.io/d3/d3-legend-master/d3-legend.js"></script>
<script src = "https://feyderm.github.io/js/viridis_colors.js"></script>
</head>
@bumbeishvili
bumbeishvili / .block
Created February 16, 2018 18:07 — forked from linnnes/.block
Brownian motion with D3 4.0 velocity Verlet physics
license: gpl-3.0
@bumbeishvili
bumbeishvili / .block
Created February 16, 2018 18:03 — forked from pbeshai/.block
Animate thousands of points with canvas and D3
license: mit
height: 620
border: no
@bumbeishvili
bumbeishvili / .block
Created February 16, 2018 18:03 — forked from pbeshai/.block
Compute points and angles along a bezier curve
license: mit
height: 320
border: no
@bumbeishvili
bumbeishvili / .block
Created February 16, 2018 18:00 — forked from pbeshai/.block
Lasso with d3 v4 and Canvas
license: mit
height: 500
border: no
@bumbeishvili
bumbeishvili / README.md
Created February 16, 2018 09:57 — forked from veltman/README.md
Nintendo pixelation

Convert image to a somewhat NES-style image:

  1. Get the colors of each square of n pixels.
  2. Convert those colors from RGB to LAB and average them.
  3. Round that color to the closest color in the NES palette.
  4. Convert back to RGB and set all n pixels to that color.