Skip to content

Instantly share code, notes, and snippets.

@1wheel
1wheel / README.md
Last active May 28, 2023 04:58
radial-mask
@1wheel
1wheel / README.md
Last active July 22, 2019 00:58
canvas-interaction-sorted

With data sorted along the x axis, we can find the closest point even faster.

var [px, py] = d3.mouse(this)
var index = bisect.left(data, px)

var minPoint = null
var minDist = Infinity
var lxDist = 0
var rxDist = 0
#!/usr/bin/python
from PIL import Image
import math
from os import listdir
imgSize = 8192
# imgSize = 512*2
@1wheel
1wheel / .gistup
Created October 2, 2018 17:53
poll-hoppers
gistup
@1wheel
1wheel / README.md
Last active July 24, 2018 06:38
regl-circles

hello webgl circles

@1wheel
1wheel / 2018-05-24.json
Created June 21, 2018 18:45
lava-flow-II
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.