Example code of my blog post about rendering 2D lines in WebGL shaders with as little cpu involvement as possible.
salon2525/webgl-shader-2d-lines
Example code for http://nanodesu.info/oldstuff/2D-lines-with-round-joints-using-WebGL-shaders/
JavaScriptWTFPL