Skip to content

Instantly share code, notes, and snippets.

View erikhazzard's full-sized avatar

Erik Hazzard erikhazzard

View GitHub Profile
@erikhazzard
erikhazzard / _.md
Created September 5, 2014 05:36
Blur / Fade Effect
@erikhazzard
erikhazzard / _.md
Last active August 29, 2015 14:06
Blur / Fade Effect
@erikhazzard
erikhazzard / index.html
Created September 7, 2014 23:33
simple blur
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<style>
html, body {
background: #ffffff;
font-family: Helvetica, Arial, Tahoma, sans-serif;
margin: 0;
@erikhazzard
erikhazzard / index.html
Created September 15, 2014 00:02
Fog of War Filter Example
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<style>
html, body {
background: #ffffff;
font-family: Helvetica, Arial, Tahoma, sans-serif;
margin: 0;
@erikhazzard
erikhazzard / filter-effect.html
Created September 15, 2014 03:30
map filter effect
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink= 'http://www.w3.org/1999/xlink' height=250 width=400>
<defs>
<filter id="filter-map" x="-0.15000001" y="-0.15000001" width="1.3" height="1.3" color-interpolation-filters="sRGB" >
<feGaussianBlur stdDeviation="4" in="SourceGraphic" result="result1" id="feGaussianBlur4202" />
<feTurbulence type="fractalNoise" baseFrequency="0.05" numOctaves="4" result="result0" id="feTurbulence4204" />
<feDisplacementMap in2="result0" scale="20" xChannelSelector="R" yChannelSelector="G" in="result1" result="result2" id="feDisplacementMap4206" />
<feGaussianBlur stdDeviation="3" in="SourceGraphic" result="result4" id="feGaussianBlur4208" />
<feComposite in2="result2" operator="arithmetic" k1="1.5" k2="-0.25" k3="0.5" k4="0" in="result4" result="result5" id="feComposite4210" />
</filter>
</defs>
@erikhazzard
erikhazzard / index.html
Created September 15, 2014 03:37
Filter With Mask
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<style>
html, body {
background: #ffffff;
font-family: Helvetica, Arial, Tahoma, sans-serif;
margin: 0;
@erikhazzard
erikhazzard / index.html
Created September 15, 2014 03:38
Map Filter
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<style>
html, body {
background: #ffffff;
font-family: Helvetica, Arial, Tahoma, sans-serif;
margin: 0;
@erikhazzard
erikhazzard / index.html
Last active August 29, 2015 14:06
Filter with Mask
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<style>
html, body {
background: #ffffff;
font-family: Helvetica, Arial, Tahoma, sans-serif;
margin: 0;
@erikhazzard
erikhazzard / index.html
Last active August 29, 2015 14:06
Map Fitler
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<style>
html, body {
background: #ffffff;
font-family: Helvetica, Arial, Tahoma, sans-serif;
margin: 0;
@erikhazzard
erikhazzard / gist:66a49b9ba47feb2f808d
Created September 26, 2014 20:12
prototype example
function Chart(){
console.log('Yo new chart created');
this.nonPrototypeFunc = function(){ console.log('oh no'); };
return this;
}
Chart.prototype.doStuff = function doStuff(){
console.log('Doing stuff. this context: ', this);