Two.js: Add ability to change stroke width for one point

Created on 21 Oct 2018  路  3Comments  路  Source: jonobr1/two.js

If there is possibility add ability to change stroke width for one point.
image

enhancement question

Most helpful comment

Cool, thanks for the input. I agree that it would make sense to enhance the Two.Anchor to have info on the weight of the stroke for that point. Then Two.js behind the scenes can interpolate between.

As far as I know this type of functionality is not part of the SVG or canvas spec. So it'll take a bit more time to include.

All 3 comments

Unfortunately not at the moment. From an API standpoint I think there are a number of ways we could tackle this. If you have any preferences please don't hesitate to share your thoughts!

Thank you,
from user point of view I think its good to have the ability to switch between normal stroke and shaped stroke:
the shaped stroke is a shape with a form of line , to change the width of one point increase the distance between the red points under the hood (the user don't see the red dots just have the width parameter), and the curvature of the shaped stroke follow the same of the original shape:

image

image

Cool, thanks for the input. I agree that it would make sense to enhance the Two.Anchor to have info on the weight of the stroke for that point. Then Two.js behind the scenes can interpolate between.

As far as I know this type of functionality is not part of the SVG or canvas spec. So it'll take a bit more time to include.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hichem147 picture hichem147  路  3Comments

mariomeraz picture mariomeraz  路  6Comments

davidwebca picture davidwebca  路  5Comments

trusktr picture trusktr  路  8Comments

ImedAdel picture ImedAdel  路  3Comments