Answers for "javascript canvas stroke text pointy"

0

javascript canvas stroke text pointy

var canvas = document.querySelector('#canvas');
var ctx = canvas.getContext('2d');

ctx.font = 'bold 110px "Arial"';
ctx.lineWidth = 26;

//Use miter
ctx.lineJoin = 'miter';
// fiddle around until u find the miterLimit that looks best to you.
ctx.miterLimit = 2; 

// or ctx.lineJoin = 'round';
// or ctx.lineJoin = 'bevel';

ctx.strokeStyle = '#a4ff11';
ctx.strokeText('Water', 100, 100);

ctx.fillStyle = '#ff0000';
ctx.fillText('Water', 100, 100);
Posted by: Guest on September-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language