Skip to content

Instantly share code, notes, and snippets.

@1wheel
1wheel / .block
Last active Dec 31, 2020
year-in-graphics
View .block
height: 950
@1wheel
1wheel / .block
Last active Jan 12, 2021
australian-fires
View .block
license: MIT
height: 600
scrolling: no
border: no
@1wheel
1wheel / README.md
Last active Jul 22, 2019
canvas-interaction-sorted
View README.md

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
View make_sprite.py
#!/usr/bin/python
from PIL import Image
import math
from os import listdir
imgSize = 8192
# imgSize = 512*2
@1wheel
1wheel / README.md
Last active Jul 24, 2018
regl-circles
View README.md

hello webgl circles

View 2018-05-24.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.