[cairo] Drawing an arrow
Travis Griggs
travisgriggs at gmail.com
Wed Nov 24 13:27:40 PST 2010
On Nov 24, 2010, at 1:50 AM, donn wrote:
> On 23/11/2010 19:09, Stefan Salewski wrote:
>> Can you imagine building an arrow of 3 or more line segments?
> The OP is a question I would like to see answered too. The problem
> is how to find the three points to define the arrow. If you have a
> bezier-curve, so the line is some S shape, how do you get the arrow
> to point along the direction that the curve sort of ends in?
One trick I use, for arrows that I know are never going to be huge, is
rather than figure out the triangle, i just draw a small wedge whose
center is at the end point of the line. The start and end angles are
something like +/- 15 from the angle of the line.
--
Travis Griggs
Objologist
For every adage, there is an equal and contrary un-adage
More information about the cairo
mailing list