Page 1 of 1

Simple line "blending" - possibly useful for textu

Posted: Mon Feb 06, 2006 12:45 am
by myles
Greetings all,

http://www-personal.monash.edu.au/~myle ... line01.lua

Just a little script to do line blending, like some illustration programs.

Create 2 lines with the same number of points on a vector layer (or copy one curve and modify it if needed). Run this script, and specify the number of intermediate steps.

Image

Benefits:

Blends between 2 lines. The lines can have any shape or number of points.
Curvature is also blended.

Limitations:

Blends between lines only. Fills and outlines are not created or blended.

Both lines must be on the same vector layer and the only two lines on the vector layer. To add a blend to another layer, create a temporary layer, create the blend, then copy and paste the blend to the appropriate layer.

Both lines must have the same number of points.

Blend points use simple equi-distant linear spacing.

Blends apply from the "start" of one curve to the "start" of the next, as determined by Moho. This can be used for interesting effects.

For example, in this image both "starting points" are at the top:

Image

While in this image one line has been rotated 180 degrees before blending:

Image

Another, more interesting example:

In this image. both lines start from the "corner":

Image

While in this version one of the original lines has been rotated 180 degrees before blending:

Image

The script is only designed for separate open lines - joined, closed, or looped curves may not blend properly.

Regards, Myles.

Posted: Mon Feb 06, 2006 10:17 pm
by bupaje
Hi myles. Thanks for this interesting addition. I think with some thought it may very useful tool to speed up drawing certain things and create some patterns and effects.

Posted: Tue Feb 07, 2006 11:57 am
by Rai López
:D ...THANKS! :D

Posted: Tue Feb 07, 2006 6:38 pm
by ulrik
Thanks myles! :D