+
-
-
@@ -149,20 +147,20 @@
data() {
return {
line: {
- smoothing: 0.15,
+ smoothing: 0.25,
flattening: 0.5
},
lines: [],
inputType: "upload",
settings: {
- frequency: 50,
- amplitude: 1.2,
- lineCount: 12,
+ frequency: 150,
+ amplitude: 1,
+ lineCount: 54,
brightness: 0,
contrast: 0,
minBrightness: 0,
maxBrightness: 255,
- spacing: 2,
+ spacing: 1,
width: 500,
height: 500
},
@@ -206,6 +204,15 @@
this.canvasData = ctx.getImageData(0, 0, 500, 500);
return true;
},
+ 'settings.frequency': function(){
+ this.processImage();
+ },
+ 'settings.lineCount': function(){
+ this.processImage();
+ },
+ 'settings.amplitude': function(){
+ this.processImage();
+ },
'canvasData': function(){
this.processImage();
}