Book a Demo

Author Topic: Shape script to draw an open arrow head  (Read 4781 times)

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Shape script to draw an open arrow head
« on: June 19, 2021, 01:36:01 am »
I know the following will draw a closed triangular arrowhead at the target of a relationship:
Code: [Select]
shape target

{

     // draw an arrowhead at the target end

     rotatable = true;

     startpath();

     moveto(0,0);

     lineto(16,6);

     lineto(16,-6);

     endpath();

     fillandstrokepath();

}

But, how I draw an open arrowhead such as the dependency arrowhead?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Shape script to draw an open arrow head
« Reply #1 on: June 19, 2021, 06:09:49 am »
Code: [Select]
shape target
{
     moveto(16,6);
     lineto(0,0);
     lineto(16,-6);
}

(just right out of my head)

q.
« Last Edit: June 19, 2021, 06:12:53 am by qwerty »