def drawSquiggle(self, p1, p2, breadth = <NUM_LIT:2>):
p1 = Point(p1)<EOL>p2 = Point(p2)<EOL>S = p2 - p1                             <EOL>rad = abs(S)                            <EOL>cnt = <NUM_LIT:4> * int(round(rad / (<NUM_LIT:4> * breadth), <NUM_LIT:0>)) <EOL>if cnt < <NUM_LIT:4>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>mb = rad / cnt                          <EOL>matrix = TOOLS._hor_matrix(p1, p2)      <EOL>i_mat  = ~matrix                        <EOL>k = <NUM_LIT>                  <EOL>points = []                             <EOL>for i in range (<NUM_LIT:1>, cnt):                <EOL><INDENT>if i % <NUM_LIT:4> == <NUM_LIT:1>:                      <EOL><INDENT>p = Point(i, -k) * mb<EOL><DEDENT>elif i % <NUM_LIT:4> == <NUM_LIT:3>:                    <EOL><INDENT>p = Point(i, k) * mb<EOL><DEDENT>else:                               <EOL><INDENT>p = Point(i, <NUM_LIT:0>) * mb<EOL><DEDENT>points.append(p * i_mat)<EOL><DEDENT>points = [p1] + points + [p2]<EOL>cnt = len(points)<EOL>i = <NUM_LIT:0><EOL>while i + <NUM_LIT:2> < cnt:<EOL><INDENT>self.drawCurve(points[i], points[i+<NUM_LIT:1>], points[i+<NUM_LIT:2>])<EOL>i += <NUM_LIT:2><EOL><DEDENT>return p2<EOL>
Draw a squiggly line from p1 to p2.