Returns the which_seg variable, the location of the hole, though typically
the function is called for side effects only.
Arguments
unit_len
the unit length in graph coordinates. This controls
the width of the ‘holes’ in the boundary lines and
generally controls the spacing of mazes.
num_segs
the total number of segments. All but one of these,
of length unit_len will be drawn. The other, randomly
chosen, will be a hole. If num_segs is one, only a hole is made,
and no line drawn. If zero or less, no action taken.
which_seg
optional numeric indicating which segment should
have the hole. If NULL, the hole segment is chosen uniformly
at random.
go_back
whether to return the turtle to starting position
when the line has been drawn.
hole_color
the color to plot the ‘hole’. A
NULL value corresponds to no drawn hole.
See the colors function for
acceptable values.
hole_arrow
a boolean or indicating whether
to draw a perpendicular arrow at a hole.