Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
Path stroke has holes in paperjs

I am using paper.js to draw paths along the mouse coordinates. Unfortunatelly the path stroke is having "holes" when the angel of a corner is very small (see picture).

paperjs path with holes

Has anyone an idea how to solve this?

Thanks Robert

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

As pointed in the comment, using a round stroke cap should mitigate this issue.
That said, this kind of drawing artifact is inherent to the way the Canvas API draws strokes. And Paper.js relies on it to draw its shapes.
This remind me of this issue which was very similar to yours.

I think that the best workaround to avoid this could be to somehow simplify the path so that this very shard angle between close points never happens. Paper.js can help you achieving this (tool min distance, path.smooth(), ...).

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!