[vue.auth.dialog] updated dialog 'frequency' canvas
This commit is contained in:
parent
aa3d896ed9
commit
86864ab8b2
|
@ -142,19 +142,21 @@ export default {
|
||||||
|
|
||||||
/* (3) Erase previous drawing */
|
/* (3) Erase previous drawing */
|
||||||
ctx.clearRect(0, 0, can.width, can.height);
|
ctx.clearRect(0, 0, can.width, can.height);
|
||||||
|
ctx.lineWidth = 7;
|
||||||
|
|
||||||
/* (4) Begin tracing */
|
/* (4) Trace through each value */
|
||||||
ctx.beginPath();
|
for( let i = precision ; i < buffer.length ; i+=precision ){
|
||||||
ctx.moveTo(0, can.height-128-buffer[0]/2);
|
|
||||||
|
|
||||||
/* (5) Trace through each value */
|
ctx.beginPath();
|
||||||
for( let i = precision ; i < buffer.length ; i+=precision )
|
ctx.strokeStyle = '#44484f';
|
||||||
|
|
||||||
|
ctx.moveTo(i, can.height-128);
|
||||||
ctx.lineTo(i, can.height-128-buffer[i]/2);
|
ctx.lineTo(i, can.height-128-buffer[i]/2);
|
||||||
|
|
||||||
/* (6) End tracing */
|
ctx.stroke();
|
||||||
ctx.lineWidth = 7;
|
|
||||||
ctx.strokeStyle = '#44484f';
|
}
|
||||||
ctx.stroke();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue