StrokeWidth in terms of pt (points) and px(pixels).

33 views
Skip to first unread message

MUKUND THAKARE

unread,
Apr 21, 2021, 9:38:42 AMApr 21
to Paper.js
Hello,
Recently I have been facing issues with setting up stroke width of  paper.path with pt and px.
The issue is I don't know the syntax if there is any to set the stroke width in terms of pt and px.

I was assigning the stroke width with appropriate number like
myPath.strokeWidth = 10;
But now I need to set stroke width with points and pixels.
Like this,
myPath.strokeWidth = 2 px; //This syntax in not working

please help me to find the correct syntax to achieve the above.

Thanks !!

Mamuka Trandyswilly

unread,
Apr 24, 2021, 11:01:35 AMApr 24
to Paper.js
2px
without space


среда, 21 апреля 2021 г. в 16:38:42 UTC+3, mukundth...@gmail.com:

MUKUND THAKARE

unread,
May 31, 2021, 1:16:48 AMMay 31
to Paper.js
Thanks !!
Reply all
Reply to author
Forward
0 new messages