Kingdom of Pattern

General Considerations

Lines

The main image generator, generateLines(geom1:geometricObject,geom2:geometricObject,numLines:Number), chooses a random point on/in geom1 and another random point in/on geom2, and connects the two by a visible line segment. It does thin numLines times. The geometric objects may be circles, rectangles, or line segments. In the case of circles and rectangles, the interior may or may not be included. generateLines may called repeatedly with different arguments.