gl-vis / regl-line2d

:part_alternation_mark: Draw 2d polyline with regl
https://gl-vis.github.io/regl-line2d
MIT License
59 stars 15 forks source link

Non-interlacing alpha #20

Closed dy closed 7 years ago

dy commented 7 years ago

An observation by @monfera.

image

The SVG behaviour is preserving alpha on overlapping segments

dy commented 7 years ago

Covered by overlay option. Pattern gets lost on place of intersection, but multiple lines overlap fine. image

Not sure we can implement svg overlapping properly since we are going to implement colorscales #19 - it is just not clear how to blend patterns with different half-transparent colors but blending them like we do now, and should we? Increased opacity on intersections intuitively makes more sense, unless we can find counter-cases. image

dy commented 7 years ago

@monfera if you have any considerations please give them here) I will close for now.