Factor, simplify, comment.
More descriptive names and comments.
Document more parameters.
Checkpoint randomLineType().
Let the line type default.
Brighten up the colors.