Beta_Ravener Posted September 28, 2015 Share Posted September 28, 2015 I've been trying to create, so far unsuccessfuly, a polyline using Graphics class. I simply set the line style, use moveTo to define start and 2 lineTo commands to create 2 successive lines. However, the shape gets closed automatically and I can't find any switch to prevent this behaviour. I've been looking at the examples but none of them creates polylines like I want. I have also been looking at the sources behind Graphics and well enough, moveTo always creates a Polygon object, guess that's why it's getting closed. The only solution I have found so far is to make simple separated lines by moveTo and single lineTo, then again moveTo and lineTo.. This however does not create line joints like for polygon and as the result there is a gap between the two lines. I'm asking if it is possible to create smooth, line capped polyline or this is just not implemented? (In which case, how long would it take to? It really doesn't seem that hard. I'm asking because I need this ASAP). Anyway, thank you for a great 2D library, it already saved a ton of work, Quote Link to comment Share on other sites More sharing options...
xerver Posted September 28, 2015 Share Posted September 28, 2015 https://github.com/pixijs/pixi.js/issues/1892 Quote Link to comment Share on other sites More sharing options...
Beta_Ravener Posted September 28, 2015 Author Share Posted September 28, 2015 Wrong combination of tags while searching the bug tracker. Thank you! Just a side question though, any idea when it will get into master branch and NPM? Quote Link to comment Share on other sites More sharing options...
xerver Posted September 28, 2015 Share Posted September 28, 2015 Soon™ Hopefully within a week. Beta_Ravener 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.