change linewidth of drawing
This commit is contained in:
parent
6d0fb1cc37
commit
57161cbc2d
|
|
@ -591,7 +591,7 @@
|
||||||
// draw on canvas.
|
// draw on canvas.
|
||||||
if (e.buttons == 1){
|
if (e.buttons == 1){
|
||||||
ctx.beginPath(); // begin
|
ctx.beginPath(); // begin
|
||||||
ctx.lineWidth = 0.5;
|
ctx.lineWidth = 5;
|
||||||
ctx.lineCap = 'round';
|
ctx.lineCap = 'round';
|
||||||
ctx.strokeStyle = 'black';
|
ctx.strokeStyle = 'black';
|
||||||
// update line
|
// update line
|
||||||
|
|
@ -611,7 +611,7 @@
|
||||||
function draw_path(path){
|
function draw_path(path){
|
||||||
// draw a path on the canvas.
|
// draw a path on the canvas.
|
||||||
ctx.beginPath(); // begin
|
ctx.beginPath(); // begin
|
||||||
ctx.lineWidth = 0.5;
|
ctx.lineWidth = 2;
|
||||||
ctx.lineCap = 'round';
|
ctx.lineCap = 'round';
|
||||||
ctx.strokeStyle = 'black';
|
ctx.strokeStyle = 'black';
|
||||||
for (var i = 0; i < path.length-1; i++) {
|
for (var i = 0; i < path.length-1; i++) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue