pRegroup-done-2019 image strokeCap = “butt”. square. image If you make it ROUND. image

image Because of the strange direction of the ends.

Another Pattern image Sharp angle paths cause image This means that since lineJoin is miter and miterLimit is 10 by default, spines up to 10 times the width can occur. https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin This is what happens when you use ROUND instead of MITER. image image

after image


This page is auto-translated from /nishio/パスの形がおかしい using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.