Re: Adding a new arrow shape

Philipp Kindermann <[email protected]> Mon, 20 Jun 2016 11:49:34 +0200
Newsgroups gmane.comp.graphics.ipe.general
Message-ID <[email protected]>
Hi Raed,

try the following XML code:

<symbol name="arrow/arrownew(spx)">
<path stroke="sym-stroke" fill="red">
0 0 m
-0.5625 0.1125
-0.675 0.1125
-1.05 0.3 c
-0.975 0.075
-0.97 -0.075
-1.05 -0.3 c
-0.5625 -0.1125
-0.675 -0.1125
0 0 c
</path>
</symbol>

The important part is that the head of the arrow lies at coordinate 0 0 and that its size is not too large. I rotated the xml-code to make ā€ž82 166 cā€œ the start- and endpoint, then translated all coordinates by -82 -166 and scaled them by 0.1. I hope this helps.

Best,
Philipp

> Am 20.06.2016 um 00:49 schrieb Raed Mohsen <[email protected]>:
> 
> 
> Hi all, 
> 
> I have a shape that I draw using IPE, the XML of it is:
> 
> <path matrix="-0.357586 0 0 -0.33228 233.009 718.158" fill="black">
> 71.5 163 m
> 75.25 164.875
> 76.375 164.875
> 82 166 c
> 76.375 167.125
> 75.25 167.125
> 71.5 169 c
> 72.25 166.75
> 72.25 165.25
> 71.5 163 c
> </path>
> 
> How can i add it to the style sheet to be a new arrow shape ?
> 
> Regards 
> -- 
> Raed Saasaa
> Research and Teaching Assistant | School of Engineering
> The University of British Columbia | Okanagan Campus
> Phone: +1 250 899 6079
> https://www.linkedin.com/in/raedsaasaa <https://www.linkedin.com/in/raedsaasaa> 
> _______________________________________________
> Ipe-discuss mailing list
> Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]
> http://lists.science.uu.nl/mailman/listinfo/ipe-discuss

_______________________________________________
Ipe-discuss mailing list
Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]
http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
smime.p7s (application/pkcs7-signature, 1.7 KB) - not displayed