开发者

Changing HTML5 Canvas text span color

开发者 https://www.devze.com 2023-02-04 18:28 出处:网络
Is there a way to change the color of a span of text without having to start a new fillText? The downside to starting a new fillText is that presumably I\'l开发者_如何学JAVAl have to somehow calcula

Is there a way to change the color of a span of text without having to start a new fillText?

The downside to starting a new fillText is that presumably I'l开发者_如何学JAVAl have to somehow calculate the position where the first ended to try to join the next bit of text.


I'm afraid there is no way to change the color without starting a new fillText in the current spec.

0

精彩评论

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