[Ipe-discuss] Adding a new arrow shape

Raed Mohsen raedislammohsen at gmail.com
Mon Jun 20 12:07:28 CEST 2016


This just works perfectly.

Thanks so much Philip for your help and explanation.

Regards

On 20 June 2016 at 02:49, Philipp Kindermann <
philipp.kindermann at uni-wuerzburg.de> wrote:

> 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 <raedislammohsen at gmail.com>:
>
>
> 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
> _______________________________________________
> Ipe-discuss mailing list
> Ipe-discuss at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
>
>
>


-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/ipe-discuss/attachments/20160620/36d804ae/attachment.html>


More information about the Ipe-discuss mailing list