stroke - method of the CanvasCtx object
Strokes the edge of the currently edited object (path).
variable represents the drawing canvas (CanvasCtx
). The setup is done on the "Draw
" tab at the beginning of the script of drawing event onDraw
ctx.lineWidth = 10;
ctx.strokeStyle = "blue";
ctx.rect(50, 50, 150, 80);