HTML5 Canvas Colour Text
How do I add colour to my t开发者_运维百科ext in canvas. When I tried fillStyle the text just stayed black.
you indeed have to set fillStyle and then call fill();
ctx.strokeStyle = 'red';
ctx.stroke();
ctx.fillStyle= 'blue';
ctx.fill();
精彩评论