Random Line drawing filter

Random Line is a GIMP Script that simulates drawing random lines of varying length at random angles.

Random Lines

The Random Lines script simulates using a nominated brush to draw straight lines of length within a nominated range, with a random direction.

Dialog Box

The following dialog box is used to configure the brush, number of points and margin.

Margin (Pixels) used to set a border to limit the area of painting. Increase this value when using larger brushes.

Brush - display the brush dialog box, shown below.

Color - choose a color for the brush.

Iterations - the number of times to draw a random line.

Minimum Line Length - the shortest length of line to draw.

Maximum Line Length - the longest length of line to draw. This value must be equal to or greater than the Minimum Line Length.

The brush dialog box is used to choose the type of brush, opacity and paint mode. Some pleasing effects can be created using larger brushes and a low opacity.

Algorithm

The filter chooses a random point that lies within the margin of the window. A random angle is chosen, and a random line length between the minimum and maximum values specified. If the "Discard Lines outside margin" option is set and the second point does not lie within the drawing area, the line will not be drawn.

Download

Download the filter here.

Go to my GIMP home page.


Author: Charles Cave <charlesweb@optusnet.com.au>

Date: 2008/02/26 9:24:43 PM