admin管理员组

文章数量:1023009

I've tried to google the subject but couldn't find anything useful.

So, is it possible to change the canvas strokeStyle thickness? If so how do I do it?

I've tried to google the subject but couldn't find anything useful.

So, is it possible to change the canvas strokeStyle thickness? If so how do I do it?

Share Improve this question edited Aug 22, 2012 at 16:09 Some Guy 16.2k10 gold badges60 silver badges68 bronze badges asked Mar 28, 2012 at 12:44 justanotherhobbyistjustanotherhobbyist 2,1904 gold badges29 silver badges40 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7
ctx.lineWidth = 10;

Example
MDN

I've tried to google the subject but couldn't find anything useful.

So, is it possible to change the canvas strokeStyle thickness? If so how do I do it?

I've tried to google the subject but couldn't find anything useful.

So, is it possible to change the canvas strokeStyle thickness? If so how do I do it?

Share Improve this question edited Aug 22, 2012 at 16:09 Some Guy 16.2k10 gold badges60 silver badges68 bronze badges asked Mar 28, 2012 at 12:44 justanotherhobbyistjustanotherhobbyist 2,1904 gold badges29 silver badges40 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7
ctx.lineWidth = 10;

Example
MDN

本文标签: javascriptCanvas strokeStyle thicknessStack Overflow