示例#1
0
def main():
    turtle.hideturtle()

    # Нарисовать квадрат.
    my_graphics.square(X2, Y2, (X3 - X2), 'gray')

    # Нарисовать несколько кругов.
    my_graphics.circle(X1, Y1, RADIUS, 'blue')
    my_graphics.circle(X2, Y2, RADIUS, 'red')
    my_graphics.circle(X3, Y3, RADIUS, 'green')

    # Нарисовать несколько линий.
    my_graphics.line(X1, Y1, X2, Y2, 'black')
    my_graphics.line(X1, Y1, X3, Y3, 'black')
    my_graphics.line(X2, Y2, X3, Y3, 'black')
def main():
    turtle.hideturtle()

    # Draw a square.
    my_graphics.square(X2, Y2, (X3 - X2), 'gray')

    # Draw some circles.
    my_graphics.circle(X1, Y1, RADIUS, 'blue')
    my_graphics.circle(X2, Y2, RADIUS, 'red')
    my_graphics.circle(X3, Y3, RADIUS, 'green')

    # Draw some lines.
    my_graphics.line(X1, Y1, X2, Y2, 'black')
    my_graphics.line(X1, Y1, X3, Y3, 'black')
    my_graphics.line(X2, Y2, X3, Y3, 'black')
示例#3
0
def main():
    turtle.hideturtle()

    # Narysowanie kwadratu.
    my_graphics.square(X2, Y2, (X3 - X2), 'gray')

    # Narysowanie okręgów.
    my_graphics.circle(X1, Y1, RADIUS, 'blue')
    my_graphics.circle(X2, Y2, RADIUS, 'red')
    my_graphics.circle(X3, Y3, RADIUS, 'green')

    # Narysowanie linii.
    my_graphics.line(X1, Y1, X2, Y2, 'black')
    my_graphics.line(X1, Y1, X3, Y3, 'black')
    my_graphics.line(X2, Y2, X3, Y3, 'black')