Re: making an ipelet for changing a straight line into a wave...
Nathaniel Cunningham <[email protected]>
| Newsgroups | gmane.comp.graphics.ipe.general |
|---|---|
| Message-ID | <CAAGwS85kmFBTet0EPD6_KGtNP7L=BO=faBxaroSWj32_kbriyg@mail.gmail.com> |
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-NNsoIfBzQvx/[email protected]> 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-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
gradientLinearDevel2.lua
(application/octet-stream, 7.9 KB) - not displayed