开发者

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();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜