style.stroke javascript code example
Example: javascript cahnge colour of strokerect
const context = canvas.getContext('2d');
context.strokeStyle = 'blue';
context.strokeRect(100, 100, 50, 50);
const context = canvas.getContext('2d');
context.strokeStyle = 'blue';
context.strokeRect(100, 100, 50, 50);