Jump to content

Curved and dashed line


Flauscha
 Share

Recommended Posts

Hi community,

I want to generate a dashed curve in PixiJs and need a little help.

 

My first attempt was to use the 'bezierCurve' function, but a dashed curve in combination with this seems impossible.

So I created a loop with many straight lines to create the dashed optic and it works for a straight line.

But how to get a curve with this attempt?

I think you can add some x and y value in the process, then remove it, but all my tries looking horrible.

Probably is a mathematic approach the right direction.

 

Please help. I spend two days to this and get no good result.

Edited by Flauscha
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...