Permalink
Browse files

added angle to lens blur

  • Loading branch information...
1 parent 1ff2612 commit e8e1c2b8f80a509dfbbb7b7050c4b55a43cf7abc evan committed Aug 28, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 www/script.js
View
@@ -484,10 +484,11 @@ var filters = {
canvas.draw(texture).tiltShift(this.start.x, this.start.y, this.end.x, this.end.y, this.blurRadius, this.gradientRadius).update();
}),
new Filter('Lens Blur', function() {
- this.addSlider('radius', 'Radius', 0, 20, 10, 1);
+ this.addSlider('radius', 'Radius', 0, 50, 10, 1);
this.addSlider('brightness', 'Brightness', -1, 1, 0.75, 0.01);
+ this.addSlider('angle', 'Angle', 0, Math.PI, 0, 0.01);
}, function() {
- canvas.draw(texture).lensBlur(this.radius, this.brightness).update();
+ canvas.draw(texture).lensBlur(this.radius, this.brightness, this.angle).update();
})
],
'Warp': [

0 comments on commit e8e1c2b

Please sign in to comment.