Two.js: Can we draw a dashed line using Two.js ?

Created on 2 Aug 2017  路  6Comments  路  Source: jonobr1/two.js

enhancement question

Most helpful comment

You can now draw dashed lines like so: https://jsfiddle.net/jonobr1/x1gc2d0L/

All 6 comments

There currently isn't an easy way to achieve this... Great request!

The closest thing is to use an image as the background for the stroke of a shape like so: https://jsfiddle.net/jonobr1/tym5s9es/

You can now draw dashed lines like so: https://jsfiddle.net/jonobr1/x1gc2d0L/

Awesome improvement!

how about canvas?

@perfilyev, the latest dev branch has dashes supported. There are a few more issues to close out before a new npm version is published.

Was this page helpful?
0 / 5 - 0 ratings