Skip to content

Instantly share code, notes, and snippets.

View erikhazzard's full-sized avatar

Erik Hazzard erikhazzard

View GitHub Profile
@erikhazzard
erikhazzard / .block
Last active August 17, 2017 08:10
wiggly chart
license: mit
@erikhazzard
erikhazzard / .block
Last active August 17, 2017 07:56
voronoi+boids-5-minimal-light
license: mit
@erikhazzard
erikhazzard / _.md
Created May 15, 2013 14:41
Blur Fade Effect
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.background {
fill: none;
pointer-events: all;
}
#states {
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.18311651051044464</real>
@erikhazzard
erikhazzard / .block
Created January 6, 2017 07:16
Poisson-Disc Voronoi
license: gpl-3.0
/**
* color hashing function
* @module generate-color-for-username
*/
var COLORS = ['#EF3C79', '#DA125F', '#990C42', '#AD41BF', '#8F18AC', '#641079', '#7F53C4', '#5E2DB3', '#41207E', '#5B68C3', '#3745AE', '#27307A', '#15B5F9', '#009AE8', '#006BA2', '#19A69A', '#008A7B', '#006056', '#9BCE5E', '#7AB538', '#567E28', '#D4E34A', '#C0CC19', '#868E11', '#E9D82E', '#FED910', '#B2980D', '#FFA700', '#B26200', '#FF7137', '#FA5200', '#AF3800', '#F55349', '#EB372C', '#A4251E', '#76909D', '#526E7B', '#394D56', '#8F6E62', '#6F4B40', '#4D342C'];
var COLORS_LENGTH = COLORS.length;
/**
* Takes in a string and returns a color. Completely deterministic.
@erikhazzard
erikhazzard / .block
Last active November 17, 2016 21:25
voronoi+boids-combined-delaunay-4-mesh
license: mit
@erikhazzard
erikhazzard / .block
Created November 17, 2016 21:23
voronoi+boids-combined-delaunay-3
license: mit
@erikhazzard
erikhazzard / .block
Created November 17, 2016 21:14
voronoi+boids-delaunay-2-mesh
license: mit