Skip to content
Permalink
Browse files

add blur class

  • Loading branch information...
Jeremy Heminger Jeremy Heminger
Jeremy Heminger authored and Jeremy Heminger committed Apr 4, 2019
1 parent 8cecd5e commit a194ef376b173a5ad4f3eee00f26f3997153e064
Showing with 24 additions and 0 deletions.
  1. +24 −0 js/blur.js
@@ -0,0 +1,24 @@
'use strict';

import * as imagedata from '/js/imagedata.js'

export default {}

/**
* @class Blur
* @extends Blur
* */
export class Blur extends ImageData {
constructor() {
super()
this.cids = 0
this.ctx = []
this.buffer = null
this.imgdata = null
}
gaussian(x,y) {
let e = 2.71828182
let q = 0.84089642
let g = (1 / 2 * Math.PI() * q * q) * e - ((x * x + y * y) / (2 * q * 2 * q)
}
}

0 comments on commit a194ef3

Please sign in to comment.
You can’t perform that action at this time.