Diagonal Line Ends


I want to draw a diagonal line where the line ends are finished at 0 degrees as in the image below.  Is there an easy way to do this using strokePath? 



No.. that's not a line-cap effect that any rendering engine would offer, AFAIK..

But it's trivial to draw it with Path::addQuadrilateral.


thanks jules :)