Diagonal Line Ends


#1

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? 

 


#2

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.


#3

thanks jules :)