![]() |
Python_2
1.0
|
Draws a Sierpinski arrowhead curve. More...
Functions | |
def | Sierpinski_arrowhead_curve (order, length) |
Creates a Sierpinski Arrowhead curve, by recursively breaking an initial line, starting at a given point, into three new segments. More... | |
def | draw (c, points, contour=False) |
Draw lines, given in points, on canvas c. More... | |
def | main (argv=None) |
Main program. More... | |
Draws a Sierpinski arrowhead curve.
Usage: _16_sierpinski_arrowhead [number_of_divisions]
def _16_sierpinski_arrowhead.draw | ( | c, | |
points, | |||
contour = False |
|||
) |
Draw lines, given in points, on canvas c.
Referenced by main().
def _16_sierpinski_arrowhead.main | ( | argv = None | ) |
Main program.
References draw(), _08b_clock_bezier.resize, and Sierpinski_arrowhead_curve().
def _16_sierpinski_arrowhead.Sierpinski_arrowhead_curve | ( | order, | |
length | |||
) |
Creates a Sierpinski Arrowhead curve, by recursively breaking an initial line, starting at a given point, into three new segments.
order | recursion depth. |
length | initial segment size. |
Referenced by main().