[vue.auth.dialog] updated dialog 'frequency' canvas ++

This commit is contained in:
xdrm-brackets 2018-04-09 23:32:55 +02:00
parent 86864ab8b2
commit 80e9bd2b05
1 changed files with 2 additions and 2 deletions

View File

@ -138,11 +138,11 @@ export default {
/* (2) Adjust dimensions */
can.width = buffer.length;
can.height = 256;
let precision = 5; // bigger -> less precise
let precision = 1; // bigger -> less precise
/* (3) Erase previous drawing */
ctx.clearRect(0, 0, can.width, can.height);
ctx.lineWidth = 7;
ctx.lineWidth = 1;
/* (4) Trace through each value */
for( let i = precision ; i < buffer.length ; i+=precision ){