llgcode / draw2d

2D rendering for different output (raster, pdf, svg)
BSD 2-Clause "Simplified" License
1.09k stars 105 forks source link

Path thickness #151

Closed ghost closed 5 years ago

ghost commented 5 years ago

I have an open line/path and I want to make it thicker and keep the stroke(thin). Is there a way to do this without some custom math and point transformation/duplication?

I was thinking about doing two strokes - one thick and one thin but then I would have z-axis overlap issue and it would also prolong the line which I do not want. Also it would create chopped lines when drawing over multiple tiles.

To be specific - I have a road on a map and I want to make it thicker so it is properly visible and not just a thin line(like google maps).

ghost commented 5 years ago

The two strokes worked afterall.