Sample script: LINEEND, LINEJOIN attributes

Five chevrons are drawn using Polylines in different colors. Each chevron demonstrates the effect of a different combination of LINEEND and LINEJOIN attributes.

A BOX provides reference lines for comparing the positions of the line-ends.

<IDF UNITS="INCHES" >
<PAGE THICKNESS="0.5" >

<GROUP LEFT="0" TOP="1" WIDTH="1" HEIGHT="2" COLOUR="RED" >
<M X="1" Y="0" />
<P X="2" Y="1" />
<P X="1" Y="2" />
</GROUP>

<GROUP LEFT="1" TOP="1" WIDTH="1" HEIGHT="2" LINEEND="ROUND" COLOUR="GREEN" >
<M X="1" Y="0" />
<P X="2" Y="1" />
<P X="1" Y="2" />
</GROUP>

<GROUP LEFT="2" TOP="1" WIDTH="1" HEIGHT="2" LINEEND="ROUND" LINEJOIN="ROUND" COLOUR="CYAN"  >
<M X="1" Y="0" />
<P X="2" Y="1" />
<P X="1" Y="2" />
</GROUP>

<GROUP LEFT="3" TOP="1" WIDTH="1" HEIGHT="2" LINEEND="ROUND" LINEJOIN="SQUARE" COLOUR="BLUE" >
<M X="1" Y="0" />
<P X="2" Y="1" />
<P X="1" Y="2" />
</GROUP>

<GROUP LEFT="4" TOP="1" WIDTH="1" HEIGHT="2" LINEEND="SQUARE" LINEJOIN="SQUARE" COLOUR="MAGENTA" >
<M X="1" Y="0" />
<P X="2" Y="1" />
<P X="1" Y="2" />
</GROUP>

<GROUP LEFT="1" TOP="1" WIDTH="1" HEIGHT="2" SHAPE="BOX" THICKNESS="0.01" />

</PAGE>
</IDF>