canvas基礎入門系列教程(7)-繪製文本

5.繪製文本 5.1.strokeText方法 通過strokeText方法可以繪製描邊的文本 // 語法 ctx.strokeText(text, x, y [, maxWidth]); 參數說明 text 使用當前 font,textAlign,textBaseline和direction 的值對文本進行渲染。 x 文本起始點的 x 軸座標。 y 文本起始點的 y 軸座標。 maxWidth
相關文章
相關標籤/搜索