[Ipe-discuss] making an ipelet for changing a straight line into a wave...

Nathaniel Cunningham nathaniel.cunningham at gmail.com
Tue Jul 7 18:35:42 CEST 2015


Jens,

Sounds like a good idea.  I attach here an ipelet to fill an existing path
with a linear gradient, based on a few points and a line the user has
placed; I think it will provide some examples and guidance that are helpful
for you.  Like your plan, it involves finding the endpoints of an existing
line segment.  I'll be happy to answer any questions if the comments in the
code aren't clear enough!

-- Nathaniel



On Tue, Jul 7, 2015 at 4:38 AM, Jens Henrik Nielsen <jhn at byg.dtu.dk> wrote:

>  Dear all,
>
>
>
> I have been using Ipe for some years now and now I wanted to move further
> and try to make a small ipelet which could be helpful in my daily work.
>
>
>
> I plan/hope to make an ipelet which can change a straight line into a wave
> like line by:
>
>
>
> 1)      Extract the coordinates to the end-points of the curve
>
> 2)      Add control points suitable locations between the end-points
>
> 3)      Draw a Bezier curve using the control points
>
> 4)      Remove the straight line.
>
>
>
> Since I’m quite new in this I was wondering if somebody could help me in
> the right direction? Right now I’m struggling just with extracting the
> coordinates for the end-points so just to get me started on that would be
> helpful.
>
>
>
> Best regards,
>
> Jens
>
>
>
> _______________________________________________
> Ipe-discuss mailing list
> Ipe-discuss at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/ipe-discuss/attachments/20150707/b31d5a50/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gradientLinearDevel2.lua
Type: application/octet-stream
Size: 8079 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/ipe-discuss/attachments/20150707/b31d5a50/attachment.obj 


More information about the Ipe-discuss mailing list